Multithreading


  1. Which of this interface is implemented by Thread class?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Runnable


  1. Which of these class is used to make a thread?











  1. 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.



  1. Which of the interface contains all the methods used for handling thread related operations in Java?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Runnable interface defines all the methods for handling thread operations in Java.


  1. Which of the following is a correct constructor for thread?











  1. 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.



  1. Which of these interfaces is implemented by TimerTask class?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Runnable