- Trending Categories
- Data Structure
- Operating System
- C Programming
- 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.
|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.|
- Difference between Traits and Abstract Classes in Scala.
- What is the difference between Externalizable and Serializable interfaces in Java?
- What is the difference between static classes and non-static inner classes in Java?
- What are abstract classes in Java?
- Abstract Method and Classes in Java
- What is the difference between abstract class and a concrete class in Java?
- What is the difference between non-static methods and abstract methods in Java?
- Abstract Classes in Java
- Difference Between Packages and Interfaces in Java
- What is the difference between virtual and abstract functions in C#?
- What is the difference between objects and classes in C#?
- Difference between Abstract Class and Interface in Java
- What is the difference between String, StringBuffer and StringBuilder classes in Java explain briefly?
- What are the main classes and interfaces of JDBC?
- What is the difference between an interface and an abstract class in C#?