Home » Java Programming » Threads

Which two of the following methods are defined in class Thread? start() wait() notify() run() terminate()

Correct Answer: 1 and 4

Explanation:

(1) and (4). Only start() and run() are defined by the Thread class.


(2) and (3) are incorrect because they are methods of the Object class. (5) is incorrect because there's no such method in any thread-related class.


← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion