Multiple choice technology programming languages

Which of the following is not a static method of Thread class

  1. sleep()

  2. join()

  3. activeCount()

  4. none

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

sleep() and activeCount() are static methods of the Thread class - you call them directly on Thread.sleep() or Thread.activeCount(). join() is an instance method that you call on a specific thread object. 'none' is incorrect since join() is indeed not static.