October 2021
Intermediate to advanced
500 pages
16h 23m
English
In Java, there are two kinds of types: reference types and primitive types. Reference types have a matching source code definition. Some reference types are also called “boxed” or “object” types. Java also offers primitive types (often called just “primitives”), which have no source file definition and are represented by special keywords instead.
The names of reference types in Java begin with a capital letter to indicate that they are backed by a source definition.
Here is playerLevel defined using a Java reference type:
Integer playerLevel = 4;
The names of Java primitive types start with a lowercase letter:
int playerLevel = 4;
All primitives in Java have a corresponding ...
Read now
Unlock full access