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 are the performance implications of interfaces over abstract classes?

Answer Posted / shakir

Interfaces are slower in performance as compared to abstract classes as extra indirections are required for interfaces. Another key factor for developers to take into consideration is that any class can extend only one abstract class while a class can implement many interfaces.
Use of interfaces also puts an extra burden on the developers as any time an interface is implemented in a class; developer is forced to implement each and every method of interface.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by the term singleton?

1041


What's a method in programming?

1155


Why main() method is public, static and void in java ?

1140


What is %02d?

1143


Can we override singleton class?

1028


why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

1048


What do you mean by Function Overloading in java?

1221


Why set is used in java?

1066


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

1248


Define how does a try statement determine which catch clause should be used to handle an exception?

1252


How listener identify that the event came from a particular object?

2052


What is the purpose of stub and skeleton?

1078


how are methods defined?

1104


What is a dot notation?

1102


explain copyonwritearraylist and when do we use copyonwritearraylist?

988