when we applied start()method on a thread ,how does it know
that to execute run()method on that object?
Answers were Sorted based on User's Feedback
Answer / suma
When start method is called , JVM calls run method of this
object
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / sushant
Thread in a java inbuilt Object.
So if you are implementing threads in your system by using
Thread class or runnable interface, the JVM will look at
that and keep an eye on your code. As soon as you call the
start method it will go and call the run method on its own.
The funda here is that this is something that the JVM if
fully responsible of handling.
| Is This Answer Correct ? | 5 Yes | 0 No |
What do you need to set-up a cluster with jboss?
wahts is mean by dynavalidatorform in struts/
what we can't do in jdbc but can do hibernate?
Can I have an action without a form?
what is container?
What is the RMI and Socket?
Which textcomponent method is used to set a textcomponent to the read-only state?
What are the design considerations while making a choice between using interface and abstract class?
What is codebase in applet?
what is singleton class? where it mainly used in the projects?
Explain ioc concept?
Is there a guarantee of uniqueness for entity beans?