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
Explain about thread synchronization inside a monitor?
What is the difference between the font and fontmetrics classes?
What is table mutation and how do you avoid it?
What are the difference between RMI and CORBA?
what is handle?
Which are the different segments of memory?
Can you control when passivation occurs?
Explain what is orm?
What is the diffrence between a local-tx-datasource and a xa-datasource?
How can I scroll through list of pages like the search results in google?
Difference between DurableSubscription and non- DurableSubscription?
what are the advantages of JTA over JTS?
whats is mean by connectionpooling
What modifiers may be used with an inner class that is a member of an outer class?
What’s jboss cache in short?