Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Do you think that java should have had pointers?

1009


What value does read() return when it has reached the end of a file?

983


What are the different algorithms used for clustering?

1024


What is the difference between RMI registry and OS Agent?

1074


What restrictions are placed on the location of a package statement within a source code file?

1059


what are RemoteObjects?

2685


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?

2091


What are the benefits of detached objects?

1013


Will the general public have access to the infobus apis?

1002


What is the difference between system.out ,system.err and system.in?

1051


what are memory considerations of jsp compares to other web components?

6465


What is scalable, portability in the view of J2EE?

2474


Can I run seam with jdk 1.4 and earlier?

939


which book is better for jdbc ,servlets and jsp

2050


Write a program to show synchronization?

1088