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
Do you think that java should have had pointers?
What value does read() return when it has reached the end of a file?
What are the different algorithms used for clustering?
What is the difference between RMI registry and OS Agent?
What restrictions are placed on the location of a package statement within a source code file?
what are RemoteObjects?
AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?
What are the benefits of detached objects?
Will the general public have access to the infobus apis?
What is the difference between system.out ,system.err and system.in?
what are memory considerations of jsp compares to other web components?
What is scalable, portability in the view of J2EE?
Can I run seam with jdk 1.4 and earlier?
which book is better for jdbc ,servlets and jsp
Write a program to show synchronization?