Which of these class is used to make a thread?
String
System
Thread
Runnable
Explanation:
Thread class is used to make threads in java, Thread encapsulates a thread of execution.
To create a new thread the program will either extend Thread or implement the Runnable interface.
Thread class is used to make threads in java, Thread encapsulates a thread of execution.
To create a new thread the program will either extend Thread or implement the Runnable interface.