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

What are the access modifiers in java?

1043


What is the buffer limit?

1036


What is overloading and overriding in java?

1234


how to run ecllipse with jettyserver for windows environment using batch file

2094


Differentiate between static and non-static methods in java.

1060


How do you remove all elements from an arraylist in java?

1037


What is internal iteration in java se 8?

1206


What is diamond operator in java?

968


Is arraylist sorted in java?

1009


What does the “static” keyword mean? Can you override private or static method in java?

1103


What environment variables do I need to set on my machine in order to be able to run java programs?

1024


What are disadvantages of java?

1006


What are different types of encoding?

1084


Can you declare an interface method static?

1068


Can you inherit from an abstract class java?

1000