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 is a method in java?
What is the significance of continue jump statement? Explain with an example.
What is t type java?
What do you mean by checked exceptions?
What is a functional interface?
What are latest features introduced with java 8?
what r advatages of websphere? & how to deploy?
What is heterogeneous in java?
How to read and write image from a file ?
What is a local class in java?
Is void a wrapper class?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
What are encapsulation, inheritance and polymorphism?
Why do we declare a class static?
What are different types of constants?