Currently browsing tag

OCPJP, Page 2

ocpjp-6-thumbnail

OCPJP 6 Mock Exam -19

1 . What will be the output? Choose the one below: 10 0 Nothing is printed Compiler error 2 . which of …

ocpjp-6-thumbnail

OCPJP 6 Mock Exam -18

1 . What will be the output? Choose the one below: Base(){} Base(long l){} Base(float f){} It will compile properly 2 . …

ocpjp-6-thumbnail

OCPJP 6 Mock Exam -17

1 . Given: Which of the following constructor signatures MUST exist in the Demo class for Derived to compile correctly? public Demo(int …

ocpjp-6-thumbnail

OCPJP 6 Mock Exam -16

1 . What will be the output? Choose the one below: Compile time error at line 10 Compilation and output of 123 …

ocpjp-6-thumbnail

OCPJP 6 Mock Exam -15

1 . Which of the following can prevent a thread from executing? A call to its pause method A call to Thread.yield() …

ocpjp-6-thumbnail

OCPJP 6 Mock Exam -14

1 . Given Answer class behaves like some a File it has a Vector, a color, some boolean variable.What is the correct …

ocpjp-6-thumbnail

OCPJP 6 Mock Exam -13

1.What will be the output? Choose the one below: True False 2 . What will be the output? Choose the one below: …

ocpjp-6-thumbnail

OCPJP 6 Mock Exam -12

1 . What will be the output? Choose the one below: the code will compile an print “Equal”. the code will compile …

ocpjp-6-thumbnail

OCPJP 6 Mock Exam -11

1 . Consider following classes: What will be the output of running class Test? false false true false true false true true …

ocpjp-6-thumbnail

OCPJP 6 Mock Exam -10

1 . Given: What is the result? Compilation succeeds Compilation fails because of an error on line 1 Compilation fails because of …