Which of these statements is incorrect about Thread?

Java MCQ: Which of these statements is incorrect about Thread?

a) run() method is used to begin execution of a thread
b) run() method is called automatically after the start() method is called
c) A thread can be created by implementing Runnable interface and overriding the run() method
d) A thread can be created by extending the Thread class

Answer:

a) run() method is used to begin execution of a thread

Explanation:

The run() method does not begin the execution of a thread. Instead, it defines the entry point for the thread. To start a thread’s execution, the start() method is called, which in turn calls the run() method.

Reference links:

https://www.rameshfadatare.com/learn-java-programming/
https://www.javaguides.net/p/java-tutorial-learn-java-programming.html

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top