1.

What is true about threading?(a) run() method calls start() method and runs the code(b) run() method creates new thread(c) run() method can be called directly without start() method being called(d) start() method creates new thread and calls code written in run() methodI got this question in semester exam.The query is from Multithreading in division Multithreading of Java

Answer»

Correct choice is (d) START() method CREATES new thread and calls code WRITTEN in run() method

The best EXPLANATION: start() eventually calls run() method. Start() method creates thread and calls the code written inside run method.



Discussion

No Comment Found

Related InterviewSolutions