JAVA BEGINNERS TUTORIAL – Variables

Variables must be declared before being used. basically the type is one of Java’s datatypes. The identifier is the name of the variable. To declare more than one variable of the specified type, use a comma-separated list.

Here are several examples of variable declarations of various types. Note that some include an initialization.

[…]