Category Java
String Compare in Java | String Comparison

In this tutorial, we will learn how to compare two strings in Java with the help of examples. We will explore various methods to compare between the two strings. In Java, or any other programming languages, string comparison is the…
Store User-defined Class Objects in ArrayList
In this tutorial, we will learn how to store user-defined (custom) class objects in Java ArrayList in an easy way and step by step. In the previous ArrayList tutorial, we have learned that ArrayList class uses generic from Java 1.5 or…
Static and Dynamic Binding in Java

The connecting (linking) between a method call and method body/definition is called binding in Java. Look at the below figure in which we have defined a class X. It has two methods m1() and m2(). The x.m1(); (method call) is…
Class Casting in Java | Generalization, Specialization

The process of converting a class type into another class type having the relationship between them through inheritance is called class casting in Java. We have known in the previous tutorial that a class is a referenced data type. If…
Difference between Super and This Keyword in Java
In this tutorial, we will understand the basic difference between super and this keyword in Java. So, let’s start with the basic introduction of both. Introduction to ‘super’ Keyword: The ‘super’ keyword in Java is a reference variable that refers…