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


Please Help Members By Posting Answers For Below Questions

What are the access modifiers in java?

589


what do you mean by stream pipelining in java 8? Explain

536


What is 32 bit float?

563


If an object is garbage collected, can it become reachable again?

547


What is string manipulation?

499






What is an immutable class? How to create an immutable class?

540


List some oops concepts in java?

585


How do you use compareto?

549


do I need to use synchronized on setvalue(int)? : Java thread

560


Write java program to reverse string without using api?

554


Can inner class have constructor?

550


Is oracle charging for java?

548


Difference between object and reference?

682


What are data types in oop?

555


What is the primary benefit of encapsulation?

562