Question 13 :
Before which of the following can the "synchronized" keyword be placed, without causing a compilation error?
Question 14 :
What will be the result of attempting to compile and run the following program?
a. Prints "BA"
b. Prints "AB"
c. Prints "Bmain"
d. Prints "mainB"
e. Output can be "Bmain" or "mainB"
f. Output can be "BA" or "AB"
g. Code does not compile
b. Prints "AB"
c. Prints "Bmain"
d. Prints "mainB"
e. Output can be "Bmain" or "mainB"
f. Output can be "BA" or "AB"
g. Code does not compile
Question 15 :
Which of the following are true about the readPassword() method of the Console class?
Select two choices.
<<<Previous Page Next Page >>>