JAVA EXAMPLE PROGRAMS

JAVA EXAMPLE PROGRAMS

Publish your article or example on Java2Novice.com

If you want to publish a java article or java example, please contact me at [email protected]

We will help you in the process of publishing your post and be a member of Java2Novice Team ;-)

And the best part is every post published and approved on java2novice.com is paid! The total amount you going to receive depends on quality of the post, but the important is - you always receives something for your job.


Below are some tips for get your post approved and published on Java2Novice.com:

  1. java2novice.com is a web site for java sample programs, an example with point to point description would be really great.
  2. Please, do not send duplicated content (i.e. cross-posted elsewhere). As every site on the web, we are interested in publishing original content.
  3. Organize your article in to smaller sections or examples.
  4. Write an example about any topic only if you really know about that.
  5. We reserve the right to make editorial changes to grammar and technical content.
  6. Once the article is published at java2novice.com, please do not republish it in another website.
  7. We will review all posts submitted and provide you feedback immediately.

Thank you so much for your interest in helping others.

Java2Novice Team

Knowledge Centre
wait Vs sleep methods
sleep(): It is a static method on Thread class. It makes the current thread into the "Not Runnable" state for specified amount of time. During this time, the thread keeps the lock (monitors) it has acquired.

wait(): It is a method on Object class. It makes the current thread into the "Not Runnable" state. Wait is called on a object, not a thread. Before calling wait() method, the object should be synchronized, means the object should be inside synchronized block. The call to wait() releases the acquired lock.
Famous Quotations
It is easier to fight for one’s principles than to live up to them.
-- Alfred Adler

About Author

Most Visited Pages

Other Interesting Sites

Reference: Java™ Platform Standard Ed. 7 - API Specification | Java is registered trademark of Oracle.
Privacy Policy | Copyright © 2017 by Nataraja Gootooru. All Rights Reserved.