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 / dara

Calling run() without calling start() will effectively
execute run() is a normal method.

Calling start() will kick off a separate thread,from your
current thread, which will then call run().

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java lang?

845


What is persistence xml in java?

838


Can a method be static and synchronized?

1015


What is a dao layer in java?

844


When is static variable loaded? Is it at compile time or runtime? When exactly a static block is loaded in java?

894


How does java handle integer overflows and underflows?

985


What is phantom memory?

903


What is the use of servlet in java?

913


Java prints out a ton of digits when I system.out.println() a double. How can I format it so it displays only 3 digits after the decimal place?

823


What type of parameter passing does java support?

805


What is the use of jprofiler?

838


What is optional in java 8? What is the use of optional?advantages of java 8 optional?

882


What is class forname java?

869


Why we use beans in java?

881


What is java aop?

844