Multithreading
- Which of this interface is implemented by Thread class?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Runnable
- Which of these class is used to make a thread?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
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.
- Which of the interface contains all the methods used for handling thread related operations in Java?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Runnable interface defines all the methods for handling thread operations in Java.
- Which of the following is a correct constructor for thread?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Thread(Runnable a, String str) is a valid constructor for thread. Thread() is also a valid constructor.
- Which of these interfaces is implemented by TimerTask class?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Runnable