What are different ways to create threads in Java?

Go down

What are different ways to create threads in Java?

Post  Admin on Wed Sep 28, 2011 11:36 am

There are 2 methods for creating threads in Java:
1-) Extending class Thread.
2-) Implementing interface Runnable.
And in either case provide an implementation for the run method.

Admin
Admin

Posts : 131
Join date : 2011-08-16

View user profile http://codefornongeek.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum