1.

Which of these statement is incorrect?(a) A thread can be formed by implementing Runnable interface only(b) A thread can be formed by a class that extends Thread class(c) start() method is used to begin execution of the thread(d) run() method is used to begin execution of a thread before start() method in special cases

Answer» Correct choice is (d) run() method is used to begin execution of a thread before start() method in special cases

To explain: run() method is used to define the code that constitutes the new thread, it contains the code to be executed. start() method is used to begin execution of the thread that is execution of run(). run() itself is never used for starting execution of the thread.


Discussion

No Comment Found

Related InterviewSolutions