2. Variables and types
Java is statically typed: you declare the type before the name. int is a whole number, double a decimal, String text and boolean true or false.
Show example
int age = 20;
System.out.println(age);
Results
Nothing found. Try another word.
Java is statically typed: you declare the type before the name. int is a whole number, double a decimal, String text and boolean true or false.
int age = 20;
System.out.println(age);