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

1090


What are different access specifiers in java? Explain

1178


What was java originally called?

999


What do you understand by the term string pool?

1065


What are static variables and functions?

1182


Can a class have more than one object?

1046


What class of exceptions are generated by the java run-time system?

1245


Can an unreferenced object be referenced again?

1244


Is node a data type in java?

1056


How do you ensure that n threads can access n resources without deadlock?

1353


If an application has multiple classes in it, is it okay to have a main method in more than one class?

1055


What's the base class of all exception classes?

1114


What is the purpose of a parameter?

1135


What do you mean by checked exceptions?

997


What happens when a thread cannot acquire a lock on an object in java programming?

1071