Variables, and Data Types
Java Syntax
Follows a specific set of rules and conventions
Combination of keywords, identifiers, literals, operators,
and separators
Case-sensitive
Variables in Java
Named locations used to store data
Declared with a data type, followed by the variable
name, and an optional initial value
Examples:
int myNumber = 10;
String myText = "Hello, World!";
Data Types in Java
Primitive data types:
boolean
char
byte
short
int
long
float
double