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

How are the elements of a borderlayout organized?

1111


What is prototype?

1151


Define prototype?

1049


What is the difference between the font and fontmetrics classes?

1149


How to deploy Jar, War files in J2EE?

2687


What are the diff types of exception?

1049


Which javutil classes and interfaces support event handling?

1037


What is table mutation and how do you avoid it?

2459


If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

1049


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

2205


What are the different class loaders used by jvm?

1093


What is the relationship between local interfaces and container-managed relationships?

1115


What is difference between object state and behavior?

1090


What are the different algorithms used for clustering?

1062


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

2237