JAVA QUIZ
1 .
Which of the following is correct constructor for thread?

Correct Answer : Option (A)

Thread(Runnable a, String str)
  Show Answer
2 .
Which method of the Runnable interface that must be implemented by all threads?

Correct Answer : Option (A)

Run() 
  Show Answer
3 .
Java allows which type of inheritance

Correct Answer : Option (D)

All of the above
  Show Answer
4 .
What is an instanceof?

Correct Answer : Option (D)

An operator and keyword
  Show Answer
5 .
Which one could be used as the main container in a Java application?

Correct Answer : Option (C)

JFrame
  Show Answer
6 .
What about constructor?

Correct Answer : Option (B)

It can take any number of parameters
  Show Answer
7 .
From the following what are the OOPs principles in JAVA?

Correct Answer : Option (D)

All of the above
  Show Answer
8 .
What is polymorphism?

Correct Answer : Option (B)

Polymorphism is the ability of an object to take on many forms.
  Show Answer
9 .
Which variables can an inner class access from the class which encapsulates it ?

Correct Answer : Option (D)

All of the above
  Show Answer
10 .
What is instance variable?

Correct Answer : Option (C)

Instance variables are variables within a class but outside any method.
  Show Answer