Category Java

Non-Primitive Data types in Java

Types of non-primitive data types in Java

We know that data types in Java are categorized into primitive and non-primitive data types. Primitive data types are those data types that are used by programmers when creating variables in their programs. They are used to store a single…

Anonymous Object in Java

An object which has no reference variable is called anonymous object in Java. Anonymous means nameless. So, an anonymous object is an object without a specific name or reference variable. An anonymous object is not stored in a named variable.…

Life Cycle of Object in Java

A complete life cycle of object in Java with examples.

In this tutorial, we will understand the life cycle of object in Java step by step. We should know how objects are born, live their life, and then die at the end. The life cycle of an object in Java…

Scope of Variables in Java

The scope of variables in Java is a location (or region) of the program where the variable is visible to a program and can be accessible. In other words, the variable scope defines the area of the program where you…