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
What is the default access specifier for variables and methods of a class?
How to find the largest value from the given array.
What is the set interface in java programming?
Is sizeof a keyword in java programming?
Is string passed by reference in java?
Why java is secure? Explain.
What is a java developer salary?
What is main function purpose?
Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.
What is null mean in java?
How do you do descending order in java?
What does replaceall do in java?
Why javac is not recognized?
What is java english?
How does compareto work in java?