An exception is an abnormal condition that arises in a code at run time. In other words, an exception is a run-time error. An exception object describes a problem encountered during theRead More…
Package
Java provides a mechanism for partitioning the class name space into more manageable sections known as the package. Packages are container for classes that are used to keep the class name spaceRead More…
Access Control Specifier
Encapsulation provides important attribute: Access Control Through encapsulation, we can control what parts of a program can access the member of a class. By controlling access, you can prevent misuse. Access specifierRead More…
Interface
Interface is similar to an abstract class in that its members are not implemented. In interfaces, none of the methods are implemented. There is no code at all associated with an interface.Read More…
Multilevel class Hierarchy
Multilevel class Hierarchy We can build hierarchies that contain as many layers of inheritance as we like. It is acceptable to use a subclass as a super class of another. For example,Read More…