scjp MCQ Questions and Answers
Practice ModeShowing 10 of 52 questions
Q1
Read this piece of code carefully
if("String".toString() == "String")
System.out.println("Equal");
else
System.out.println("Not Equal");
Answer: Option A
Q2
Read this piece of code carefully
if("String".toString() == "String")
System.out.println("Equal");
else
System.out.println("Not Equal");
Answer: Option A
Q3
Read this piece of code carefully
Answer: Option A
Q4
Read the code below. Will be the result of attempting to compile and run the code below.
Answer: Option C
Q5
Read the code below. Will be the result of attempting to compile and run the code below.
Answer: Option A
Q6
Read the following code below.
Answer: Option D
Q7
An Interface can never be private or protected.
Answer: Option B
Q8
A Vector class in jdk 1.2
Answer: Option
Q9
A String Class
Answer: Option
Q10
Answer the question
Answer: Option