Category Java
Object Declaration and Initialization in Java

In this tutorial, we will learn object declaration and initialization in Java with the help of examples. We will learn different ways to initialize value or data of the state of an object inside a class. We will cover the…
Constants in Java | Types, Example

A value which is fixed and does not change during the execution of a program is called constants in Java. In other words, Java constants are fixed (known as immutable) data values that cannot be changed. Java supports various types…
How to Create Object in Java

In this tutorial, we will learn how to create an object in Java with the help of examples. We know that everything is an object in Java. A class is a model or user-defined blueprint for creating objects. It encapsulates…
Data Types in Java

We know that we need a variable to store data. Internally, a variable represents a memory location where data is stored. When we use a variable in java program, we have to declare first it as: int x; Here, “x”…
Arguments in Java | Parameters, Example

Arguments in Java are the actual values that are passed to variables defined in the method header when the method is called from another method. That is, whenever any particular method is called during the execution of the program, there…