aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java
  • Which of the following methods of Thread class returns a ...
Multiple choice

Which of the following methods of Thread class returns a true value if the thread is still active?

  1. isDaemon()

  2. isAlive()

  3. interrupted()

  4. run()

  5. setName()

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This method of Thread class returns a true value if the thread is still active.

Keep practicing — related questions

  • Which of the following methods of ThreadClass in Java determines if a thread is still running or not?
  • Which of the following methods in Thread class, checks that the thread is a daemon thread?
  • Which of the following methods is used in multithreaded programming to determine if a thread is still running?
  • Which of the following methods of Thread class waits for a thread to terminate?
  • Which of the following methods is used in Thread class to resume the execution of a Thread class?
  • Which of the following statements is false?
  • Which of the following methods of the Thread class is used to wait for a thread to complete?
  • Which of the following methods of Thread class is used to resume execution of all threads waiting on the in...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Java Core Classes and Threads (1473 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy