Email address:
Password:
SCJP/OCPJP 1.6 certification
Practice Exams and Training

Eligibility Quiz for Java OCPJP Training Course

Note: This quiz is designed only to assess if you are ready to join the our Examlab SCJP/OCPJP training course. This quiz will only show your score and your eligibility status, but does NOT necessarily provide answers, explanations, or any other exam features.
1)Which one of the following statements is true about overriding a method?
2)Which of the following statements are true? (choose two)
3)Which of the followings ARE valid at the compile time? (choose three)
4)What would be the result of attempting to compile and run the following code fragment?
int x = 0, y = 1;
for(int z = x + y; z < 5; z+= y) {
  System.out.print(++y + z);
}
5)What would be the result of attempting to compile and run the following code fragment?
class A {
  static class B { }
  static class C extends A { }
  
  public static void main(String a[]) {
    new A().go();  
  }
  
  public void go() {
    pr(this instanceof C);
    pr(new C() instanceof A);
    pr(new Object() instanceof A);
    pr(this instanceof Object);
  }
  
  static void pr(Object o) {
    System.out.print(o + " ");
  }
}
6)Which of the following statements are true? (choose two)
7)Which of the following expressions return the current date/time in milliseconds? (choose two)
8)What would be the result of attempting to compile and run the following code fragment?
class A {
	
  static void go(){ }
  
  public static void main(String s[]) {
    A a = null;
    a.go();
  }
  
}
9)Which of the following statements are true? (choose two)
10)Which of the followings are NOT Java operators? (choose two)
ExamLab © 2008 - 2017