Chapter 2Java Building Blocks
OCP exam objectives covered in this chapter:
- Working With Java Primitive Data Types and String APIs
- Declare and initialize variables (including casting and promoting primitive data types)
- Identify the scope of variables
- Use local variable type inference
- Describing and Using Objects and Classes
- Declare and instantiate Java objects, and explain objects’ lifecycles (including creation, dereferencing by reassignment, and garbage collection)
- Read or write to object fields
As the old saying goes, you have to learn ...
Get OCP Oracle Certified Professional Java SE 11 Programmer I Study 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.