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 / rajkiran bande

@Answer 5 : Yes. But you'll eventually end up in getting
IllegealThreadStateException when run() is invoked for the
second time.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jpa used for?

475


Explain the encapsulation principle.

530


What is meant by rest api in java?

468


What is ehcache in java?

488


Are there tuples in java?

475






What is dependency injection in java?

464


How do I know if I have jre or jdk?

482


Can the main method be overloaded?

554


Is java singleton thread safe?

474


What is web xml java?

505


What is predicate in lambda expression?

465


What are the benefits of a jar file?

487


What is java flatmap?

481


How do I enable java in firefox?

475


What is a container in java?

466