Category Java

Type Conversion and Casting in Java

Automatic type conversion in Java

The process of converting a value from one data type to another is known as type conversion in Java. Type conversion is also known as type casting in Java or simply ‘casting’. If two data types are compatible with each…

This Keyword in Java

Calling current class methods using this keyword in Java

this keyword in Java is a reference variable that refers to the current class object. In other words, it holds the reference to the current class object or the same class object. The current class object can be referred by…

Super Keyword in Java: Syntax, Uses and Examples

Usage of super keyword in Java

Super keyword in Java is a reference variable that refers to an immediate superclass object of the current object. The keyword ‘super’ comes into the picture with the concept of inheritance in Java. The super keyword always represents a superclass…

Types of Inheritance in Java

Types of inheritance in Java

In this tutorial, we will learn about the types of inheritance in Java with the help of simple and clear example programs. Before moving on to the types of inheritance, let us first take a brief look at inheritance. What…