In Java, a thread can be created via............
A. Extending the Thread class
B.Implementing the Runnable interface.
C. Both of the preceding
D. none of the above
Answer:C
In Java, a thread can be created via............
A. Extending the Thread class B.Implementing the Runnable interface. C. Both of the preceding D. none of the above
Explanation: Implementing the Runnable interface and overriding the run() method will result in the creation of a thread. Then a Thread object can be created and the start() method called. The Main thread in Java is the one that starts executing when the programme starts.