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
What exactly is java?
Explain naming conventions for packages?
Can arraylist hold different types java?
Explain the scope of a variable.
What are the differences between processes and threads?
What is the difference between the paint() and repaint() methods in java programming?
What is use of inner class in java?
Can we have multiple classes in a single file?
How do you check whether the list is empty or not in java?
What is the use of accept () method in java?
What is data type in computer?
Why can't we use static class instead of singleton?
What is stringjoiner ?
Can private class be extended java?
What is the purpose of tostring() method in java?