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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the three parts of a lambda expression? What is the type of lambda expression?

1083


Which api is provided by java for operations on set of objects?

1523


what is object-oriented programming in java?

1104


What does ide stand for?

1003


What is an array length?

959


What is arraylist class in java?

1119


What is array length?

1018


Is empty string in java?

1255


Can a private method of a superclass be declared within a subclass?

1100


What is the basic difference between string and stringbuffer object?

1137


Can a constructor call the constructor of parent class?

1082


Is null an object java?

1044


How java uses the string and stringbuffer classes?

1126


how can you take care of mutual exclusion using java threads? : Java thread

1094


Can we call thread start () twice?

1010