Back to Top

Sunday 15 January 2012

JAVA : What is the difference between an Interface and an Abstract class?

An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract. An interface has all public members and no implementation. An abstract class is a class which may have the usual flavors of class members (private, protected, etc.), but has some abstract methods.

1 Responses to “ JAVA : What is the difference between an Interface and an Abstract class? ”

Prashant said...
13 January 2020 at 17:59

Very nice post. Really very attractive information. Thanks for sharing.
Advanced Java training


Post a Comment

Popular Posts

Subscribe via Email
Subscribe Java Interview Questions via Email
All Rights Reserved JAVA INTERVIEW QUESTIONS | Privacy Policy | Anijit Sarkar