ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

It is important to understand that run( ) can call other methods, use other classes, and declare variables, just like the main thread can. The only difference is that run( ) establishes the entry point for another, concurrent thread of execution within your program. This thread will end when run( ) returns.

 

Many Java programmers feel that classes should be extended only when they are being enhanced or modified in some way. So, if you will not be overriding any of Thread’s other methods, it is probably best simply to implement Runnable.

 

Related Posts Plugin for WordPress, Blogger...
Flag Counter