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 Hostile Applets?
What is Java Annotations?
Can you pass by reference in java?
Where are local variables stored?
Explain different states of a thread in java?
Explain how to force the garbage collection in java.
What one should take care of, while serializing the object?
What is a boolean structure?
In java, how many ways you can take input from the console?
How many bits is a 64 bit byte?
Where are variables stored?
How do you escape a string?
What is the use of singleton class?
Explain listiterator and methods in listiterator?
Have you ever used hashtable and dictionary?