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

Can a class have multiple constructors?

1046


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

978


What is comparator in java?

1000


What is double checked locking in singleton?

1052


Why is java so important?

1119


What is difference between float and double?

958


What is the difference between a window and a frame in java programming?

1136


Explain about complier design(phases)

1080


What is the difference between == and === javascript?

1178


how to write a server program and sending the mails to the server using smtp protocol please help me

2064


how does the run() method in runnable work? : Java thread

920


What does it mean to flush a file?

1061


Can you call one constructor from another if a class has multiple constructors?

1035


How many bits is a boolean?

1083


Explain purpose of sleep() method in java?

1117