18.5
Example
DOCUMENTATION COMMENTS
  </font></pre></span>
<span name = 
o ">
toString
  public String toString()
  
Returns a String that represents this Object.
It is recommended that all subclasses override
this method.
 o  </font></pre></span>
<span name = 
">
notify
  public final void notify()
  
Notifies a single waiting thread on a change in
condition of another thread. The thread effecting
the change notifies the waiting thread using notify().
Threads that want to wait for a condition to change
before proceeding can call wait(). 

The method notify() can be called only by the
thread that is the owner of the current object s
monitor lock.
  
    
Throws:
_top_">IllegalMonitorStateException
    
If the
current thread is not the owner
of the Object s monitor lock.
    
See Also:
    
wait, notifyAll
  
 </font></pre></span>
<span name = 
o ">
notifyAll
  public final void notifyAll()
  
Notifies all the threads waiting for a condition to
change. Threads that are waiting are generally waiting
for another thread to change some condition. Thus, the
thread effecting a change that more than one thread is
waiting for notifies all the waiting threads using
the method notifyAll(). Threads that want to wait for
a condition to change before proceeding can call
wait(). 

The method notifyAll() can be called only by the
thread that is the owner of the current object s
monitor lock.
  
    
Throws:
_top_">IllegalMonitorStateException
    
If the
current thread is not the owner
of the Object s monitor lock.
    
See Also:
    
wait, notify
  
  </font></pre></span>
<span name = 
o ">
wait
  public final void wait(long millis) throws 
ception.html#_top_">InterruptedException
430






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved