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
I get an exception if I remove the static modifier from main?
What does public static void main(string[]) mean?
What is the difference between lambda expression and anonymous methods?
What is transaction management in java?
What is a yaml file in java?
What is cache in java?
Why do we only use the main method to start a program?
What is injection in java?
What is xml file in java?
What is the resourcebundle class?
Is jar an executable?
What is difference between loosely coupled and tightly coupled in java?
What is serializable in java?
Spring framework ---Can somebody explain me in easily understandable format about AOP, IOC and DI, so that i can explain in interview rather than just telling what is available in net. I am not able to understand that also. I am new to Spring
What is the java api?