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



when we applied start()method on a thread ,how does it know that to execute run()method on that ob..

Answer / suma

When start method is called , JVM calls run method of this
object

Is This Answer Correct ?    7 Yes 0 No

when we applied start()method on a thread ,how does it know that to execute run()method on that ob..

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

Post New Answer

More Advanced Java Interview Questions

how to use debug in my elipse to solve problems that exist in my project

1 Answers   SAP Labs, TCS,


what is stringBuffer and StringBuilder?

3 Answers  


list the types of dialodg

1 Answers   Wipro,


How are commas used in the intialization and iteration parts of a for statement?

1 Answers  


What is the difference between session and entity beans?

1 Answers  


Is jvm a overhead?

1 Answers  


What is the difference between a menuitem and a checkboxmenuitem?

1 Answers  


In real time project when will we use Abstract class. and what are the difference between abstract and interface.

6 Answers   DELL, FCS, Polaris, Tanla Solutions, TCS,


Name three subclasses of the component class?

1 Answers  


How would you detect a keypress in a jcombobox?

1 Answers  


How do you set security in applets?

1 Answers   IBM,


What is a policy?

1 Answers  


Categories