Title: Sun Certified Associate for the Java Platform, Standard Edition, Exam Version 1.0 questions
Description: The Sun Certified Associate for the Java Platform, Standard Edition, Exam Version 1.0 certification exam provides an ideal entry into an application development or a software project management career using Java technologies. This worldwide credential validates basic knowledge of Object-Oriented Concepts, UML representation of OO concepts, the Java programming language, and general knowledge of Java Platforms and Technologies. Candidates for this exam include: entry level Java programmers, students studying to become Java programmers, project or program managers working with Java technology in the software development industry.
Number of questions: 64 questions
Has explanations: Yes
Objectives: - Section 5: OO Concepts
- Section 2: UML Representation of Object-Oriented Concepts
- Section 3: Java Implementation of Object-Oriented Concepts
- Section 4: Algorithm Design and Implementation
- Section 6: Java Platforms and Integration Technologies
- Section 7: Client Technologies
- Section 8: Server Technologies
- Operational / Organizational Security 15%
Given:
10. interface Foo {}
11. class Alpha implements Foo {}
12. class Beta extends Alpha {}
13. class Delta extends Beta {
14. public static void main( String[] args ) {
15. Beta x = new Beta();
16. // insert code here
17. }
18. }
Which code, inserted at line 16, will cause ajava.lang.ClassCastException?
Answer(s)
- - Alphaa = x;
- - Foo f = (Delta)x;
- - Foo f? = (Alpha)x;
- - Beta b = (Beta)(Alpha)x
Correct Answer