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?



What are the performance implications of interfaces over abstract classes?..

Answer / 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

More Core Java Interview Questions

How to call static method?

4 Answers   Epoch,


What must a class do to implement an interface in java programming?

0 Answers  


When a byte datatype is used?

5 Answers  


Where are the card layouts used?

0 Answers  


Can we serialize static variables in java?

0 Answers  


What is a numeric literal?

0 Answers  


How do you override a variable in java?

0 Answers  


What is externalizable interface?

0 Answers  


What are the advantages of autoboxing?

0 Answers  


where exactly collections are usefull in realtime

2 Answers  


What is public/private protected in java?

0 Answers  


What is prime number in java?

0 Answers  


Categories