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

Explain the difference between abstraction and encapsulation.

972


What are the access modifiers available in java?

1124


Why do people says “java is robust”?

1028


What is linked hashmap and its features?

1005


Explain all java features with real time examples

1716


Does java allow overriding static methods ?

1112


Which class is the superclass for all the classes?

1019


What is a subsequence of a string?

1061


What is data structure in java?

982


What is the purpose of sizeof operator?

1050


What mechanism does java use for memory management?

974


What does jre stand for?

1059


What is variable declaration and definition?

1002


Explain how can you debug the Java code?

1065


Is the empty set a singleton?

974