The variable is the basic unit of storage in a Java program. A variable is defined by the combination of an identifier, a type, and an optional initializer.
Variable names cannot be keyword, it is case- sensitive and the first character must be a letter.
In Java, all variables must be declared before they can be used. The basic form of a variable declaration is:
type identifier [ = value ][, identifier [= value ] …];
Examples:
int a, b;
int a = 10, b = 20, c = 30;
int a, b = 20, c;
Confusion point
In Java, variable name can also start with underscore character “_”, or a dollar sign “$”.
Best Possible answer is chosen.