logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is the purpose of the wait(), notify(), and notifyAll() methods ?


  • Correct Answer
  • The wait(), notify(), and notifyAll() methods are used to provide an efficient way for threads to wait for a shared resource When a thread executes an object's wait() method, it enters the waiting state It only enters the ready state after another thread invokes the object's notify() or notifyAll() methods 


  • Technology problems


    Search Results


    • 1. What are wrapped classes ?
    • Discuss
    • 2. What is synchronization and why is it important ?
    • Discuss
    • 3. Difference between Swing and Awt ?
    • Discuss
    • 4. What are pass by reference and passby value ?
    • Discuss
    • 5. What is the purpose of garbage collection in Java, and when is it used ?
    • Discuss
    • 6. What is top level class?
    • Discuss
    • 7. What is static member class?
    • Discuss
    • 8. what is non-static member class?
    • Discuss
    • 9. What is local class?
    • Discuss
    • 10. What is anonymous class?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment