Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / damodar narayan

Calling run() method is just like calling a method in java. So when called, it just gets executed but "we do not get the thread functionality by calling the run() method". But calling start() method registers your program with the thread scheduler and hence it achieves the threading functionality. Start in turn calls the runs method.

Hope its clear.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by numeric promotion?

1077


How can one prove that the array is not null but empty?

985


What about 'hostile applets'? : java security

966


What is flatmap in java8?

1032


Where is java installed?

936


Why serialization is used in java?

1148


Are the actual permissions for the application defined at run-time or compile-time? : java security

999


Which is faster c++ or java?

980


What are the authentication modes in asp.net? : java security

1025


How do I export a java project?

955


Can an application have multiple classes having main method?

985


How to reverse the singly linked list(In Node data members are(int data,int pointerTONext))

1756


Can we extract main method from another class?

1010


How do I know if I have jre or jdk?

950


What is class path in java?

995