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
Answer / suma
When start method is called , JVM calls run method of this
object
| Is This Answer Correct ? | 7 Yes | 0 No |
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 |
Explain RMI Architecture?
Why is string immutable in java?
Hello, I'm java developer. My skill is programming with java,jsp, struts, struts2+spring, hibernate, eclipse, tomcat, mysql,Oracle,Middlegen and other open source technology. I'm interest work any web base project that use my ability above. The thing is that I have never got any chance to work in this field though i am very much comfort with my skills. So if any body want me then i will happily join you. Also I have also some of my friends if you. If you interest to outsource any project to me then also you are welcome. you can reach me by email at me4bangalore@yahoo.in
What is the RMI and Socket?
Have you used threads in Servelet?
Which component handles cluster communication in jboss?
Will it be called overriding if I do not change the parameters or return type, instead throw a different exception in the method signature.
How many ways can a thread be used?
How to add new JTabbed pane?
What is meant by Superconductivity?
What is checkpoint? How to create checkpoints in our java projects?
Should synchronization primitives be used on bean methods?