what is difference between abstraction and interface?

Answer Posted / kavitha

Abstract classes define methods and interfaces declare
methods.
Interfaces declare methods without implementation.
Abstract classes are very much useful when there is a same
functionality across various classes.
Interfaces are useful for classes which varies in
functionality and with the same method signature.

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the default access specifier for variables and methods of a class?

819


How to find the largest value from the given array.

747


What is the set interface in java programming?

827


Is sizeof a keyword in java programming?

807


Is string passed by reference in java?

748


Why java is secure? Explain.

765


What is a java developer salary?

728


What is main function purpose?

732


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

738


What is null mean in java?

833


How do you do descending order in java?

740


What does replaceall do in java?

677


Why javac is not recognized?

705


What is java english?

677


How does compareto work in java?

778