Exception Handling
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…
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…
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…
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 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 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…
Inheritance is the process of using properties of one class into the another class Inheritance allows to use properties of the existing class into the another class by deriving sub-class from theRead More…
this Keyword this is a pointer that points to the current object this keyword is used when a method need to refer to the object that invoked it. this can be usedRead More…
Method Overloading Method overloading is a mechanism through which we can define multiple methods with the same name within the same class Methods share similar name but number of arguments and dataRead More…
A constructor is a special method which is used to initialize the object at the time of the creation Java allows objects to initialize themselves when they are created. This automatic initializationRead More…
A Class is a container that combines data members and method within a single unit knows as class It is a template for creating new User defined data type It defines aRead More…