Question 43 :

What will happen when you attempt to compile and run the following code? (Assume that the code is compiled and run with assertions enabled.)
Choose one answer.
Picture
a. It will print odd and even numbers from 0 to 9 correctly (0 even and 1 odd). 
b. It will print odd and even numbers from 0 to 9 incorrectly (0 odd and 1 even). 
c. Compilation error at line 9. 
d. Compilation error at line 10. 
e. It will result in an infinite loop.

Question 44 :

In the following code, which lines do not use assertions appropriately? Select two choices.
Choose at least one answer. 
Picture
a. Line 11 
b. Line 13 
c. Line 14 
d. Line 15 
e. Line 19

Question 45 :

What will happen when you attempt to compile and run the following code?
Choose one answer.


Picture
a. Compilation error 
b. Prints "We are equal 10" 
c. Prints "Not equal! 20" 
d. Prints "Not equal! 10"
<<<Previous Page         Next Page >>>


ALL about SCJP = SCJP 1.6, mock, certification, scjp 1.5 , scjp questions, scjp books, scjp hand written notes, scjp dumps, scjp trainings, scjp video tutorials, scjp simulators etc.