Difference between Interface & Abstract class?

Answer Posted / janet

1.All the methods declared inside an interface are abstract
where as abstract class must have atleast one abstract
method and others may be concrete or abstract.

2.In abstract class ,keyword abstract must be used for the
methods where as interface we need not use that keyword for
the methods.

3. Abstract class must have subclass where as interface
can't have subclasses.

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How java enabled high performance?

584


What is use of inner class in java?

514


What is the difference between JDK and JVM?

632


What is a class variable?

569


What are the various access specifiers for java classes?

544






What is runtime locatable code?

867


How can an object be unreferenced?

541


What is super?

583


What is a vararg?

549


Is java se open source?

569


Why do we need variables?

531


What is the difference between assignment and initialization?

558


What is difference between equals and hashcode method?

569


What is the benefit of inner classes in java?

606


Do loops java?

549