What is the difference between Abstract Class and Interface
Answer Posted / tarun jangra
1. An abstract class is a specialization whereas Interface
is a generalization. That means an abstract class is created
when only few class wants to share some methods,when you
have to create some methods to be shared by all the classes
then interface is used.
2. An abstract class can have non-abstract methods (means
methods with implementation) while all the methods in an
Interface are by default abstract.
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
Is empty list java?
What are the important features of Java 10 release?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
What are 3 boolean operators?
Explain implementation and how is it different from conversion?
What is the effect of keeping a constructor private?
What is a double?
What is the purpose of checked and unchecked exceptions in JAVA?
What is jpa specification?
Why are parameters used in functions?
Does string isempty check for null?
What is lambda expression in java?
Is 9 a prime number?
What are extraneous variables examples?
What is int lol?