- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the difference between interfaces and abstract classes in Java?
Following are the notable differences between interface and abstract class in Java.
Abstract Class | Interface |
---|---|
An abstract class may contain concrete method. | All the methods of an interface are abstract. |
To use an abstract class, you need to inherit it. Provide body to (override) the abstract methods if there are any. | To use an interface you need to implement the interface and provide body to (override) all the abstract methods of it. |
Members of an abstract class can be public, private, protected or default. | All the members of the interface are public by default. |
- Related Articles
- Difference between Traits and Abstract Classes in Scala.
- What are abstract classes in Java?
- What is the difference between Externalizable and Serializable interfaces in Java?
- Abstract Classes in Java
- Abstract Method and Classes in Java
- What is the difference between static classes and non-static inner classes in Java?
- What is the difference between non-static methods and abstract methods in Java?
- What is the difference between abstract class and a concrete class in Java?
- Difference Between Packages and Interfaces in Java
- Difference between Abstract Class and Interface in Java
- What is the difference between virtual and abstract functions in C#?
- What is the difference between String, StringBuffer and StringBuilder classes in Java explain briefly?
- Difference Between Interface and Abstract Class in Java & C#
- What are abstract classes in C#?
- What is the difference between objects and classes in C#?

Advertisements