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

Hi Friends, can you give difference between extending thread
class and implementing runnable interface.

Answer Posted / ravikiran

By extending a thread class we will be restricted to the
implementation for single class only,by implementing
Runnable interface we will get extended for implementing
more than one thread

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is io stream in java?

974


What is command line argument

1153


When should I use singleton?

961


Can we have a method name same as class name in java?

994


Is java owned by oracle?

958


How do I type unicode?

910


Where are local variables stored?

917


What does @override mean?

1108


What is the difference between final, finally and finalize() in java?

1058


What does g mean in regex?

937


Can we override tostring method in java?

928


What is the difference between heap and stack memory?

1137


Implement a stack with push (), pop() and min() in O(1) time.

1035


Explain heap sort?

1048


What do you understand by classes in java?

948