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 two categories of data types in the java programming language?
What is string in java with example?
What is string and example?
What is meant by 'Class access modifiers'?
What is a ternary operator in java?
What is stack explain?
What are methods?
What is the biggest integer?
Give reasons supporting that string is immutable.
Difference between current previous versions of Java?
What are the difference between string, string builder, and string buffer in java?
What do you mean by constant time complexity?
Why can't you declare a class as protected?
What is singleton math?
Can we have any code between try and catch blocks?