run() method is called directly instead of calling start() method - Core Java

Q.  What will happen if we call the run() method directly instead of calling the start() method?
- Published on 16 Jul 15

a. Each thread starts in a separate call stack.
b. Invoking the run() method from main thread, the run() method goes onto the current call stack rather than at the beginning of a new call stack.
c. Both A & B
d. None of the above

ANSWER: Both A & B
 

    Discussion

  • Pankaj Spaiya   -Posted on 27 Nov 17
    It should be option B

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)