scjp MCQ Questions and Answers
Practice ModeShowing 10 of 52 questions
Q21
Read the following code excerpt carefully
Answer: Option
Q22
Attempting to compile and run the code will cause
Answer: Option A
Q23
Read the following piece of code carefully.
Answer: Option C
Q24
Read the following piece of code carefully
Answer: Option D
Q25
Read the following piece of code carefully.
Answer: Option
Q26
If a Runtime Exception is thrown in the finalize method
Answer: Option B
Q27
The factory class java.util.Collections
Answer: Option A
Q28
what does the following expression return?
(0.0 == -0.0)
Answer: Option A
Q29
What does the following expression print on the screen?
System.out.println(Math.min(Float.NaN, Float.POSITIVE_INFINITY));
Answer: Option B
Q30
What does the following expression return
Math.max(Float.POSITIVE_INFINITY,Double.POSITIVE_INFINITY);
Answer: Option B