CAN WE CALL THE RUN() METHOD INSTEAD OF START()?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
Java  Thread 
 817  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    Can we call the run() method instead of start()?

    yes, but it will not work as a thread rather it will work as a normal object so there will not be context-switching between the threads.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!