1.8. Tenets of Java
Code in Java must be encapsulated in classes.
There are two kinds of values in Java: object references and atomic values of primitive types.
References denote objects that are created from classes.
Objects can only be manipulated via references.
Objects in Java cannot contain other objects; they can only have references to other objects.
Deletion of objects is managed by the runtime system.
Get Programmer's Guide to Java™ Certification, A: A Comprehensive Primer, Second Edition 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.