Actualités

Abstract classes and interfaces in Java serve fundamentally different purposes. Learn the differences between these Java language elements and how to use them in your programs. Abstract classes ...
We can create constructors inside the abstract method, but not in interface. Java interface can have public methods by default while abstract class can have any of public, private, and protected ...
1) don't create object for interface & abstract . but we can use ananymous class. 2) interface only declare method. but abstract class both define(nomarl method) and ...
Child class has to implement the abstract functions in order to fulfill the contract. Java 8 onwards, Interface got more powerful with the static and default methods. interface Alpha{ default void bar ...