Part I. Learning Java

Part I introduces the Java language with simple examples. Chapter 1 focuses on language constructs such as conditionals and loops. Chapter 2 introduces Java’s object-oriented programming features.

Chapter 1, Java Basics
Chapter 2, Objects, Classes, and Interfaces

Get Java Examples in a Nutshell, 3rd 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.