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

Mayank Tripathi

Total Post:0

Points:0
Posted by  Mayank Tripathi
Java  Thread 
 990  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.

      Modified On Mar-28-2018 02:16:03 AM

Answer

NEWSLETTER

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