D3.4 – Describe the uses of the primitive data types and the reference class string

Primitive Data Types

Primitive data types are most commonly used to store simple values.

They are also used as the building blocks of the more complex abstract data types. 

It is important to know for the exam which data type you would use for a given scenario and why

Reference Class – string

Rather than having a simple data type string, Java has a class String. This means that Java provides a number of methods that can be used to manipulate Strings which is really helpful.

This image has an empty alt attribute; its file name is image-21.png
Refer to the JDK API for java.lang.String a complete listing.