Vidyalelo
Java Programming · Q4

Threads

Programming · Java Programming · question 4

Q4

How can you create a new thread in Java by implementing the Runnable interface?

A.
Create an object of the Thread class
B.
Create a class that implements the Runnable interface and override the run() method
Answer
C.
Use the start() method of the main thread
D.
None of These

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board