Java Variables
Introduction
Declaration
int age; // Declaration of an integer variable named 'age'Initialization
age = 25; // Initializing 'age' with the value 25int age = 25; // Declaration and initialization in one lineData Types
int count = 10; // integer
double price = 19.99; // floating-point number
char grade = 'A'; // character
String name = "John"; // string (reference type)