Java Tutorial Archive

Collections in Java

Collection Framework: Collection framework contains a set of classes and interfaces which are used for …

Dynamic Method Dispatch

Dynamic Method Dispatch (RunTime Polymorphism): A superclass reference can refer to a subclass object. Whenever …

Java Method Overriding

Method overriding: If a method inherited from the superclass requires a different definition other than …

Super Keyword in Java

Super keyword is used to refer the members of immediate parent class. Accessing parent class …

Abstract Class in Java

Abstraction: Abstraction is the process of hiding the inner details and showing the functionality. Abstraction …

Interface in Java

Interface is similar to that of a class except that it can contain only constants …

Java Inheritance

Inheritance is the process of inheriting the attributes (data member) and behaviour (methods) of an …

Java String Builder

What is StringBuilder?(Difference between a StringBuffer and StringBuilder): StringBuilder Class had been added since the …

Java String Buffer

In some cases, there may arise a need for the programmer to modify the content …

Java String

What is a string? In C, C++, a string represents an array of characters (last …