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
How to use arraylist in java netbeans?
Can we have try without catch block?
What do you mean by inner class in java? Explain
What will happen if static modifier is removed from the signature of the main method?
How can you set the applet size?
What are java threads?
When do we use synchronized methods in java?
Can a java program have 2 main methods?
What happens if an exception is throws from an object's destructor?
Difference between object instantiation and construction ?
How do I type unicode?
What is local class in java?
What is java and their uses?
What is instance synchronization?
What is the simpletimezone class in java programming?