Posted On: Apr 11, 2020
Abstract Class: An abstract class is a class that is declared abstract, it may or may not include abstract methods. When an abstract class is subclassed, the subclass usually provides implementations for all of the abstract methods in its parent class. However, if it does not, then the subclass must also be declared abstract.
Interface: An interface is a reference type in Java. It is similar to a class. It is a collection of abstract methods. A class implements an interface, thereby inheriting the abstract methods of the interface. Along with abstract methods, an interface may also contain constants, default methods, static methods, and nested types.
Never Miss an Articles from us.
OOP concepts in Java are the main ideas behind Java's Object-Oriented Programming. They are an abstraction, encapsulation, inheritance, and polymorphism. There are four main OOP concepts in Java. The...
A JOIN condition is applied to join rows from two or added tables, founded on a similar column connecting them. The various kinds of the JOINs in SQL:LEFT (OUTER) JOIN: Returns every record from ...
Exception Handling is one of the powerful mechanisms to handle runtime errors so that the normal flow of the application can be maintained....