Answer Posted / virendrasinh gohil
The only way to create a thread is using a thread class.
(Either by extending it or creating object elsewhere).
Runnable does very little contribution here. It's just
that, the thread object expects instance of a class which
should have run() (semantics) method and is called via
runnable interface. Runnable method doesn't create any
thread by itself (sounds dumb as everybody knows Runnable
is an interface).
Calling Thread's start() is the only way in java to spawn a
separate independed execution with in the application.
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Can we override data members in java?
What are adapter classes?
What is the common usage of serialization? What exceptions occur during serialization?
What is null mean in java?
What is the default value of an object reference declared as an instance variable?
What is the difference between final, finally and finalize()?
What are java packages? What is the significance of packages?
What is java ceil?
What is the original name of java?
What is classname class in java?
What is the difference between instanceof and isinstance?
How infinite loop is declared?
Why constructor has no return type?
What are methods of a class?
What is the abstraction?