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
What is the latest java version?
What are keyboard events?
What is the purpose of using java.lang.class class?
How do I get the | symbol on my keyboard?
What is quick sort in java?
What are different data types?
How does compareto work in java?
Is nullpointerexception checked or unchecked?
What causes memory leaks in java?
What a static class can contains?
What is heterogeneous in java?
What is meant by design patterns?
What is the different between get and post?
Define immutable object?
When is finally block not called?