scjp MCQ Questions and Answers
Practice ModeShowing 10 of 52 questions
Q31
Read the following code carefully.
Answer: Option C
Q32
Read the code below carefully
Answer: Option C
Q33
Class fields with the following modifiers will not be serialized
Answer: Option C
Q34
Assume that Cat is a class and String[] args is the argument passed to the public static void main(String args[]) method of the class. The class is executed with the following command line string
Answer: Option A
Q35
A demon Thread group
Answer: Option
Q36
Assume that th is an instance holding a thread object. th.start() causes the thread to start running and eventually complete its execution. The object reference by th is not accessable any more and is garbage collected when the garbage collecter runs.
Answer: Option B
Q37
The no-argument constructor provided by the compiler when no constructor is explicitly provided in the code
Answer: Option C
Q38
Which of the following is the direct base class of java.awt.AWTEvent.
Answer: Option B
Q39
Interface methods can be declared with the following modifiers
Answer: Option
Q40
Which of the following are true about the class defined inside an interface
Answer: Option