top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

What is the difference between Thread.start() & Thread.run() method in Java

0 votes
863 views
What is the difference between Thread.start() & Thread.run() method in Java
posted Sep 4, 2013 by Vinay Shukla

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes

Thread.start() method(native method) of Thread class actually does the job of running the Thread.run() method in a thread.If we directly call Thread.run() method it will executed in the same thread,so does not solve the purpose of creating new thread.

answer Sep 4, 2013 by Arvind Singh
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...