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

Which keyword specify that a variable is effectively final ?

972


Is there any sort function in java?

1029


If we don’t want some of the fields not to serialize how to do that?

996


How static variable work in java?

1103


Is null or empty java?

969


Explain different states of a thread in java?

1037


Explain the significance of listiterator.

1082


Mention a package that is used for linked list class in java.

942


How do you define a singleton class?

1059


Explain covariant method overriding in java.

1085


Write a program to show whether a graph is a tree or not using adjacency matrix.

1082


What is the use of isempty in java?

1005


Which sorting is best in java?

983


There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?

1474


How do you make an arraylist empty in java?

912