VIP Exclusive

SCJP VIP Certification Practice Exam III

SCJP — The Sun Certified Java Programmer (SCJP) exam, now Oracle Certified Professional Java SE Programmer (exam CX-310-065 for Java 6), is issued by Sun Microsystems/Oracle and consists of 72 scenario-based questions in 175 minutes with a 65% passing threshold.

58
Questions
175m
Time Limit
65.00%
To Pass
Question 1 of 58👑 VIP

Given the following code: java class Base { static String msg = "Base static"; static { System.out.print("B "); } { System.out.print("b "); } Base() { System.out.print("C "); } } class Child extends Base { static { System.out.print("D "); } { System.out.print("d "); } Child() { System.out.print("E "); } } public class Test { public static void main(String[] args) { new Child(); new Child(); } } What is the output?

Questions 2–58 and full explanations are VIP-exclusive.