what are the diffrences between interface and abstract
class?
Answer Posted / cool
=>Interface :
1. All the methods in the interface are abstract.
2. We can achieve multiple inheritance through interface.
3. All the methods in the interface should be without
Access modifier. Implicitly public.
Abstract class:
1. Abstract class may contain abstract method and non-
abstract method.
2. We can achieve only single inheritance and multi-level
inheritance.
3. Abstract methods have Access modifiers.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between abstract classes and interfaces in java?
Explain the difference between treeset and treemap in java?
What is tree node in java?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
Can arraylist hold different types java?
What is a class in java?
Can we serialize singleton class?
What is thread safe singleton?
What is module in project?
What do you understand by garbage collection in Java? Can it be forced to run?
Can variables be used in java without initialization?
Tell me the latest versions in java related areas?
If a class is declared without any access modifiers, where can the class be accessed?
What are classloaders?
What are the four corner stones of oop?