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

Difference between abstract class and Interfaces?

Answer Posted / taresh nama

• Interfaces provide a form of multiple inheritances.
A class can extend only one other class.
• Interfaces are limited to public methods and
constants with no implementation. Abstract classes can have
a partial implementation, protected parts, static methods,
etc.
• A Class may implement several interfaces. But in
case of abstract class, a class may extend only one
abstract class.
• Interfaces are slow as it requires extra
indirection to to find corresponding method in in the
actual class. Abstract classes are fast.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between == and equals().

1049


What are the two ways to create a thread?

1008


Explain the difference between runnable and callable interface in java?

1049


Explain how to convert any java object into byte array.

976


What is the use of singleton class?

970


What classes of exceptions may be caught by a catch clause in java programming?

1179


Can constructor be protected in java?

967


What is the difference between sleep and wait in java?

966


What are assembly attributes?

1008


What is the purpose of java?

1013


What are class types in java?

1077


Does java support function overloading, pointers, structures, unions or linked lists?

1108


What is the difference between sop and work instruction?

927


Are static members inherited to sub classes?

1141


What does I ++ mean?

1065