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

Answers were Sorted based on User's Feedback



while creating thread why we extend thread class..

Answer / jayaprasad

calling the Thread class methods like start().

Threads can be created in two ways
1) extends Thread class
2) implementing Runnable interface.

Is This Answer Correct ?    10 Yes 0 No

while creating thread why we extend thread class..

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

More Core Java Interview Questions

Why sleep()is in Thread and wait() in Object class? Why can't I have both in one class or vice versa?

1 Answers  


In which order the iterator iterates over collection?

0 Answers  


Can we initialize the final blank variable?

0 Answers  


Tell us something about an iterator.

0 Answers  


What is difference between final and finally in java?

0 Answers   Cyient,


is it possible to add a object in a HASHMAP

6 Answers   HCL,


please write java program of instanceOf keyword implementation

2 Answers   TCS,


What is a Presistent Object?

0 Answers   InfoAxon Technologies,


does java support default argument in Method?

1 Answers  


What do you mean by flow of struts?

0 Answers   Amdocs,


what is the use of custom tags? with example?

1 Answers   Photon,


What is scope & storage allocation of global and extern variables? Explain with an example

0 Answers   IBS,


Categories