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
How do I find jre version?
What is a yaml file in java?
What is native api in java?
Is java secure? : java security
What is jar file in java?
What is transactional in java?
What is gui in java with examples?
Explain different way of using thread?
Why there are no global variables in java?
In hibernate what is the difference between the Session and SessionFactory?
How do I install java re?
What is mq in java?
When do we go for java 8 stream api? Why do we need to use java 8 stream api in our projects?
differences between iterator and spliterator in java se 8?
What is map and flatmap?