Tell the different ways of using threads in Java?

The thread could be implemented by using runnable interface or by inheriting from the Thread class. The former is more advantageous, because when you are going for multiple inheritance, only interface can help.

No comments:

 
Top Blogs