CoolInterview.com - World's Largest Collection of Interview Questions
 Interview Questions  
 Our Services  

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!


    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS J2EE JAVA DETAILS
    Question :
    What is the purpose of the wait(), notify(), and notifyAll() methods?
    Category Java Interview Questions
    Rating (4.0) By 4 users
    Added on 10/23/2004
    Views 2271
    Rate it!
    Answers:

    The wait(), notify(), and notifyAll() methods are used to provide an efficient way forthreads 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.





    If you have the better answer, then send it to us. We will display your answer after the approval.
    Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer
    What is an Abstract Method?
    View Answer
    How are Java source code files named?
    View Answer
    What is the relationship between the Canvas class and the Graphics class?
    View Answer
    What are the high-level thread states?
    View Answer
    What value does read() return when it has reached the end of a file?
    View Answer
    Can a Byte object be cast to a double value?
    View Answer
    What is the difference between a static and a non-static inner class?
    View Answer
    What is the difference between the String and StringBuffer classes?
    View Answer
    If a variable is declared as private, where may the variable be accessed?
    View Answer
    What is an object's lock and which object's have locks?
    View Answer

    Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

    Notify me when better answer is posted!
    Email:

    View ALL Java Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2009 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions
    Page URL: http://www.coolinterview.com/interview/1155/default.asp?cachecommand=bypass


    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | Joke of the Day

    0.39