Exception Handling in Java

The Java programming language uses exceptions to handle errors and other exceptional events. What is an Exception: An exception is an event that interrupts the…

Continue Statement in Java

The Continue Statement in Java is used to continue loop. It is widely used inside loops. Whenever the continue statement is encountered inside a loop,…

Inheritance In Java | Java Tutorial

Inheritance is a process where one class inherits the properties of another class. Let’s say we have two classes namely Parent Class and Child Class.…

Arrays in Java with Examples

Collection of similar type of elements is known as Array. Array in Java is an Object that holds fixed number of values of a similar…

ArrayList In Java with Examples

Earlier we have seen Arrays and we found few limitations of Arrays in Java. Size of an Array is fixed. Using ArrayList we can overcome…

Access Modifiers In Java

Access modifiers in Java are used to specify access levels for classes, variable methods and constructor.  default: The scope of default access modifier is limited…

Method Overloading In Java

A class having multiple methods with same name but different parameters is called Method Overloading There are three ways to overload a method. 1. Parameters…

Method Overriding In Java

Method Overriding: (Dynamic Polymorphism/Run time polymorphism) Declaring a method in child class which is already present in the parent class is called Method Overriding. In…

Polymorphism in Java | Java Tutorial

Polymorphism allows us to perform a task in multiple ways. Let’s break the word Polymorphism and see it, ‘Poly’ means ‘Many’ and ‘Morphos’ means ‘Shapes’.…