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 / dara
Calling run() without calling start() will effectively
execute run() is a normal method.
Calling start() will kick off a separate thread,from your
current thread, which will then call run().
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is java lang?
What is persistence xml in java?
Can a method be static and synchronized?
What is a dao layer in java?
When is static variable loaded? Is it at compile time or runtime? When exactly a static block is loaded in java?
How does java handle integer overflows and underflows?
What is phantom memory?
What is the use of servlet in java?
Java prints out a ton of digits when I system.out.println() a double. How can I format it so it displays only 3 digits after the decimal place?
What type of parameter passing does java support?
What is the use of jprofiler?
What is optional in java 8? What is the use of optional?advantages of java 8 optional?
What is class forname java?
Why we use beans in java?
What is java aop?