July 2018
Intermediate to advanced
400 pages
12h 14m
English
In Java, there are two kinds of types: reference types and primitive types. Reference types are defined in source code: A matching source code definition corresponds to the type. Java also offers primitive types (often called just “primitives”), which have no source file definition and are represented by special keywords instead.
A reference type in Java always begins with a capital letter, indicating that it is backed by a source definition for its type.
Here is experiencePoints defined using a Java reference type:
Integer experiencePoints = 5;
A Java primitive type starts with a lowercase letter:
int experiencePoints = 5;
All primitives in Java have a corresponding ...
Read now
Unlock full access