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

whats is mean by jndi

1 Answers   SolutionNET,


Are there books about seam?

0 Answers  


What is the difference between long.class and long.type?

0 Answers  


What is the difference between Super and This Keyword?

4 Answers   HCL, TCS,


Explain lazy activation?

1 Answers   HCL,






Why use a datasource when you can directly specify a connection details?

0 Answers  


Thread life cycle?

3 Answers   TCS,


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,


Why won’t the jvm terminate when I close all the application windows?

0 Answers  


Write a java program to find out the sum of harmonic series : 1 + ½ + 1/3 + ……… up to nth term , for any value of n.

2 Answers  


we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?

0 Answers   IBM,


If your ui seems to freeze periodically, what might be a likely reason?

0 Answers  


Categories