What are different ways to create threads in Java?
Page 1 of 1
What are different ways to create threads in Java?
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.
1-) Extending class Thread.
2-) Implementing interface Runnable.
And in either case provide an implementation for the run method.
Similar topics
» Why are there no global variables in Java?
» Java Collection
» What are the differences between C++ and Java?
» How does java permanate generation & young generation work?
» Why are there no global variables in Java?
» Java Collection
» What are the differences between C++ and Java?
» How does java permanate generation & young generation work?
» Why are there no global variables in Java?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|