Code For NonGeek
Would you like to react to this message? Create an account in a few clicks or log in to continue.

What are different ways to create threads in Java?

Go down

What are different ways to create threads in Java? Empty What are different ways to create threads in Java?

Post  Admin 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

https://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