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

What class is the top of the awt event hierarchy?

0 Answers  


what is activation monitor and what is its job?

1 Answers  


Can I run seam with jdk 1.4 and earlier?

0 Answers  


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

0 Answers   TCS,


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

0 Answers  






Howmany interfaces are used in RMI?

2 Answers  


What is DTD?

3 Answers   Wipro,


Does Java pass arguments by value or reference?

5 Answers   HeadStrong,


what do u mean by java bean??

2 Answers   ADP,


Why are component architectures useful?

0 Answers  


On a computer that having single CPU, how multithreading concept can be achieved?

1 Answers   Zensar,


whats is mean by object and class?

1 Answers   Saka Solutions,


Categories