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...

why interfaces are faster than abstract classes?

Answer Posted / aruna raman

Actually abstract are faster than interfaces classes.

interfaces are Slow, requires extra indirection to find the
corresponding method in the actual class. Modern JVM's are
discovering ways to reduce this speed penalty.

Abstract Class ::
- It cannot defines all the methods
- It has subclass.
- Here, Subclass is useless
- A class can be extend an abstract class

Interface ::
- It defines all the methods
- It must have implementations by other classes, But there
will be no use of that.
- Only an interface can extend another interface.

Is This Answer Correct ?    16 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which method cannot be overridden in java?

996


What is super keyword explain with example?

1287


Is main is a keyword?

1000


What is parseint?

1016


How can we make a class singleton?

1075


Can we store variables in local blocks?

1352


Why does my function print none?

954


How to create a base64 decoder in java8?

1057


Explain java coding standards for classes or java coding conventions for classes?

1130


How can u increase the heap size in the memory?

1020


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

1995


Difference between Linked list and Queue?

1029


How do you use wildcards?

1063


What is multiple inheritance? Is it supported by java?

965


how to handle exceptions in ejb?

2305