Java Certification Examination
Java Certification Examination
Objectives for the Sun Certified Programmer for the Java 2 Platform
Write code using if and switch statements and identify legal argument types for these
statements.
Write code using all forms of loops including labeled and unlabeled use of break and continue
and state the values taken by loop control variables during and after loop execution.
Write code that makes proper use of exceptions and exception handling clauses (try, catch,
finally) and declares methods and overriding methods that throw exceptions.
Write code using component, container, and layout manager classes of the java.awt package to
present a GUI with specified appearance and resize behavior, and distinguish the
responsibilities of layout managers from those of containers.
Sample Questions for the Sun Certified Programmer for the Java Platform
2. What should you use to position a Button within an application Frame so that the size of the
Button is NOT affected by the Frame size?
A. a FlowLayout
B. a GridLayout
C. the center area of a BorderLayout
D. the East or West area of a BorderLayout
E. the North or South area of a BorderLayout
3. Which is the advantage of encapsulation?
A. Only public methods are needed.
B. Set
C. List
D. Collection
E. Enumeration
5. Which statement is true about a non-static inner class?
A. It must implement an interface.
B. sizeof
C. friend
D. extends
E. synchronised
7. Which declares an abstract method in an abstract Java class?
A. public abstract method();
B. public abstract void method();
C. public void abstract Method();
D. public void method() {abstract;/}
Are update exams offered for people who are currently certified under an older version, and
want to have a more recent certification?
No. You have to take the same exams as someone who has not taken previous exams.