Question 16.
Whích methods are present in the class Thread?
1. run
2. wait()
3. join
4. exit()
Answer:
1,2 and 4
0 1 and 3
2 and 4
O 1.3 and 4
Answers
Answered by
2
Explanation:
Thread class is the main class on which Java's Multithreading system is based.
...
Thread Class Methods.
Method Description
join() Wait for a thread to end
run() Entry point for a thread
sleep() suspend thread for a specified time
start() start a thread by calling run() method
Similar questions