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
What is a dynamic array java?
Can you instantiate the math class?
What is garbage collector?
Why javac is not recognized?
Variable of the boolean type is automatically initialized as?
What are the classes of java?
What is the purpose of interface?
Write a program to reverse array in place?
what is synchronization and why is it important? : Java thread
What is an object class?
What is files manifesting?
Why put method is used?
Is simpledateformat safe to use in the multithreaded program?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
What is boolean flag in java?