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 bifunction in java?

1203


What is flush () in java?

1008


how to open and edit XML file in Weblogic???

1973


What is are packages?

1035


What is a concrete classes? Is Java object class is concrete class?

984


Explain reverse a linked list recursive java solution?

986


What do you mean by composition in java?

1026


What is command line argument in java?

1151


What is callablestatement? How you can call stored procedure to pass in parameter?

1025


What is incompatible types in java?

1039


Which number is denoted by leading zero in java?

1244


What is an immutable class?

1142


What is xslt in java?

979


How do you identify if jvm is 32-bit or 64-bit from java program?

969


Can we print null in java?

1060