1.

Which of these class is used to make a thread?(a) String(b) System(c) Thread(d) RunnableThe question was asked in a national level competition.This intriguing question comes from Java.lang topic in section Exploring java.lang & java.io of Java

Answer»

Correct choice is (c) THREAD

Best EXPLANATION: Thread CLASS is used to make threads in java, Thread encapsulates a thread of EXECUTION. To create a new thread the program will either extend Thread or IMPLEMENT the Runnable interface.



Discussion

No Comment Found

Related InterviewSolutions