why interfaces are faster than abstract classes?

Answer Posted / laxmikant

As Interfaces always have abstract methods, it needs less
time for compiler to compile them as compared to abstract
classes which may have well defined methods for sharing
among the classes which will extend it.

Is This Answer Correct ?    4 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why java uses the concept of the string literal?

541


What state is a thread in when it is executing?

523


Explain the use of shift operator in java. Can you give some examples?

533


What is tree in java?

483


Is there any difference between synchronized methods and synchronized statements?

572






Explain the difference between the public, private, final, protected, and default modifiers?

549


What are methods?

546


What is type inference in java8?

572


What does business logic mean?

499


Is string passed by reference in java?

544


What is the association?

541


What is a generic code?

522


What is the purpose of static methods and variables?

527


Implement a stack with push (), pop() and min() in O(1) time.

622


What is constructor and virtual function? Can we call a virtual function in a constructor?

674