Monday, June 3, 2013

Creating Threads In java



Creating a Thread:

Java defines two ways in which this can be accomplished:


·         You can implement the Runnable interface.

·         You can extend the Thread class, itself.

For Both ways examples ....please Read :

1. Thread By Extending.

2. Thread By Implementing.

No comments:

Post a Comment