FireEdgeX
0

LESSON 02 ยท JAVA

Types and variables

Java declarations specify a type and a name before the value is used.

6 min readIn progress

THE IDEA

Understand the concept

Java is statically typed, so a variable declaration states its type. Primitive types such as int hold simple values; String is a reference type, and final marks a local binding that should not be reassigned.

WORKED EXAMPLE

See it in context

Example