What is the difference between Abstract Class and Interface
Answer Posted / e.bhavani
1) all abstract methods of the abstract class should be
implemented in its sub classes
all the (abstract) methods of the interface should be
implemted in its implementation classes
2) abstract class can contain instancevariables also
interace can not contation instance varibles. it contations
only constants.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
Can sleep() method causes another thread to sleep?
Why do we need strings in java?
What happens if an exception is not handled in a program?
What languages are pass by reference?
What are the important features of Java 9 release?
Can size_t be negative?
What is the use of toarray () in java?
What is internal iteration in java se 8?
What happens when you add a double value to a string?
Define the term string pool?
Can you give few examples of final classes defined in java api?
How can we create a synchronized collection from given collection?
Explain the scope of a variable.
What is the use of beaninfo?
What is difference between synchronize and concurrent collection in java?