PRACTICE EXAM 4

The real exam has 60 questions and you are given three hours to complete it. On the real exam, and on all of the exams in this book, give yourself credit only for those questions that you answer 100 percent correctly. For instance, if a question has three correct answers and you get two of the three correct, you get zero credit. There is no partial credit. Good luck!

1. Given:

         1. abstract class Vibrate {         2.   static String s = "-";         3.   Vibrate() {  s += "v"; }         4. }         5. public class Echo extends Vibrate {         6.   Echo() { this(7); s += "e"; }         7.   Echo(int x) { s += "e2"; }         8.   public static void main(String[] args) {         9.     System.out.print("made " + s + " "); ...

Get OCP Java SE 6 Programmer Practice Exams (Exam 310-065) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.