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

1155


What flag up means?

1072


os is developed in c no java is more secured then c na why dont the os developed is developed using java

4301


What is multi level inheritance in java?

1075


What happens when I use / and % with a negative numerator?

1077


What is the default value of float and double datatype in java?

1042


What is bom encoding?

1046


Will minecraft java be discontinued?

1224


Is singleton thread safe in java?

1018


What are triggers in DB? Explain their types. How do they work?

1137


What happens if we override private method?

1027


What about instanceof operator in java?

1065


What are the restrictions imposed on method overriding?

1056


How can you share data between two thread in Java?

978


What a static class can contains?

1194