when we applied start()method on a thread ,how does it know
that to execute run()method on that object?
Answer Posted / 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 |
Post New Answer View All Answers
How are the elements of a borderlayout organized?
What is prototype?
Define prototype?
What is the difference between the font and fontmetrics classes?
How to deploy Jar, War files in J2EE?
What are the diff types of exception?
Which javutil classes and interfaces support event handling?
What is table mutation and how do you avoid it?
If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
What are the different class loaders used by jvm?
What is the relationship between local interfaces and container-managed relationships?
What is difference between object state and behavior?
What are the different algorithms used for clustering?
A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions