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 use of singleton class?
Name the components that are termed to be Heavy-weight component but available in Light-weight components?
What is package private scope in java?
Can we have multiple classes in single file ?
Why java is secure? Explain.
How do I type unicode?
What technique can be employed to compare two strings?
Is null function in java?
Can singleton class be serialized?
What does escaping a character mean?
What is e java?
Can we override protected method in java?
What is the significance of listiterator?
What is matcher in java?
What is the benefit of lambda expressions?