Quizzma Latest Questions

Which of the following statements is not true?

Which of the following statements is not true? A. A class that extends the Thread class can create a thread.

B. Only by implementing the Runnable interface may a thread be created.

C. In specific circumstances, the run() method is used before the start() method to start a thread.

D. The thread’s execution is started using the start() method.




Leave an answer

Leave an answer

What is the capital of Egypt? ( Cairo )

1 Answer

  1. The statement that is not true is:

    C. In specific circumstances, the run() method is used before the start() method to start a thread.

    Explanation: The `start()` method is used to initiate a thread’s execution, which in turn calls the `run()` method. If you call `run()` directly, it will not create a new thread; instead, it will run `run()` in the current thread. So, the proper way to start a thread is always through the `start()` method.

Related Questions