Java General

Class vs Interface Java

We know Java supports three types of classes – Concrete, abstract and interfaces. After summarizing the difference between abstract classes and interfaces, let us tabulate the difference between classes and interfaces. Class Interface Supports only multilevel and hierarchical inheritances but not multiple inheritance Supports all types of inheritance – multilevel, hierarchical and multiple "extends" keyword …

Class vs Interface Java Read More »

Abstract class vs Interface Java

After knowing what is an abstract class and interface in Java, let us summarize their differences. The differences Abstract class vs Interface given in a table format, at a single place, gives more clarity for a novice, attempting to learn Java. Table on Abstract class vs Interface Abstract class Interface Supports multilevel and hierarchical inheritance …

Abstract class vs Interface Java Read More »