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 is a flag value?

1026


What is the private method modifier?

1089


Can I extend singleton class in java?

1101


Can java list be null?

997


What are locale settings?

990


What is the difference between the file and randomaccessfile classes?

1095


what is meant by abstract class?

1126


What is time complexity java?

991


What is stored procedure. How do you create stored procedure ?

1953


Can you use abstract and final both with a method?

1087


How do you use substring in java?

1138


Is java an ide?

981


What is array sorting in java?

1056


Can we sort hashset in java?

1087


What is a key in java?

979