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

What is more advisable to create a thread, by implementing
a Runnable interface or by extending Thread class?

Answer Posted / abcd

Suppose ..you want to work with thread and also with a
class from AWT package.

java rule is that : YOu cannot extend more one class in
your program.

So it is adviseable to implement the runnable interface and
extend any other class which you desire....

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is module with example?

1000


Why are the objects immutable in java?

983


What is a java list?

1100


What is a super method?

976


What is treemap in java?

940


Differentiate between nested and inner class in java.

995


Is nullpointerexception checked or unchecked?

1028


Why do we need data serialization?

986


Is list thread safe in java?

917


Does .length start 0 java?

998


What is getkey () in java?

1004


How many times finalize method will be invoked? Who invokes finalize() method in java?

1014


What are the three best choices for a development environment?

1109


What all methods are used to prevent thread execution ?

1023


Why do we override tostring method in java?

957