Chapter 2. Working with Java data types

Exam objectives covered in this chapter

What you need to know

[2.2] Differentiate between object reference variables and primitive variables. The primitive data types in Java, including scenarios when a particular primitive data type should or can’t be used. Similarities and differences between the primitive data types. Similarities and differences between primitive and object reference variables.
[2.1] Declare and initialize variables (including casting of primitive data types). Declaration and initialization of primitives and object reference variables. Literal values for primitive and object reference variables.
[2.5] Develop code that uses wrapper classes such as Boolean, Double, ...

Get OCA Java SE 8 Programmer I Certification Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.