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...

while creating thread why we extend thread class

Answer Posted / pamal janveja

To create User Defined thread, We requires features of thread
and java provide us Thread class.
We simply over right its run method and called this by start method which internally call to run method.
Similarly using other methods of Thread class , we can create,access and delete user defined thread.

Note:- Without Thread class or Runnable interface , We can not create User defined Thread.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a constructor call the constructor of parent class?

1044


How do you trim a space in java?

984


How can I become a good programmer?

983


Is arraylist sorted in java?

1006


What is constructor chaining in java?

1063


How do you sort an array in java?

996


Can we overload the methods by making them static?

1003


Can final class have constructor?

927


What is nullpointerexception?

1074


Is final static java?

1014


What is the purpose of the strictfp keyword?

1164


What do you mean by local variable and instance variable?

956


What is jit compiler in java?

1108


What is use of super keyword in java?

1026


What is a parameter in matrices?

1052