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
What are the difference between string, string builder, and string buffer in java?
What is a java developer salary?
What is the purpose of a transient variable?
What are different data structures in java?
Can we override constructors?
Why we use protected in java?
What is a nested class?
Which sorting is best in java?
What is methodological theory?
Write a program to print count of empty strings in java 8?
When throw keyword is used?
What is module in oop?
What does nextint () do in java?
What is member in java?
Why string is not a wrapper class?