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 multithreading and its advantages?
What is an anonymous class in java?
In Java list the methods that can be overridden?
Can we use a switch statement with strings?
Why does java does not support multiple inheritance? Explain
How do you check if two given string are anagrams?
Is this valid in java ? Can we instantiate interface in java?
Which is a valid identifier?
What is java’s garbage collected heap?
Explain the difference between abstract class and interface in java?
What are the changes in java.io in java 8 ?
What is the syntax and characteristics of a lambda expression?
What flag up means?
What is a byte string?
What is hashing in java?