cant we call run() method directly instead of calling indirectly through the start()
method ? if we do so then what is the problem ?
Answer Posted / will
Calling run() without calling start() will effectively
execute run() in the current thread.
Calling start() will kick off a seperate thread,from your
current thread, which will then call run().
| Is This Answer Correct ? | 12 Yes | 4 No |
Post New Answer View All Answers
Is jvm a compiler or an interpreter?
What is a java executable jar file?
What is hql in java?
Is java singleton thread safe?
What is the difference between lambdas and delegates?
What is cmp in java?
What is property file in java?
What happens when the parent process of a child process exits before the child ?
Which version of my browser should I use? : java security
I have deployed a .war file in my application server comprising of struts and hibernate.If i want to change the "dialect" property of hibernate cfg file how can i change(I have only .war file)... Thanks in advance
What is the meaning of the words public, static and void?
What are tags in java?
What is an api in java?
What is the difference between a jdk and a jvm?
Do I need to install jre if I have jdk?