The Definitive Java Programming Guide
Fully updated for Java SE 17, Java™: The Complete Reference, Twelfth Edition explains how to develop, compile, debug, and run Java programs. Best-selling programming author Herb Schildt covers the entire Java language, including its syntax, keywords, and fundamental programming principles. You’ll also find information on key portions of the Java API library, such as I/O, the Collections Framework, the stream library, and the concurrency utilities. Swing, JavaBeans, and servlets are examined, and numerous examples demonstrate Java in action. Of course, recent additions to the Java language, such as records, sealed classes, and switch expressions are discussed in detail. Best of all, the book is written in the clear, crisp, uncompromising style that has made Schildt the choice of millions worldwide.
Coverage includes:
Data types, variables, arrays, and operators
Control statements
Classes, objects, and methods
Method overloading and overriding
Inheritance
Interfaces and packages
Exception handling
Multithreaded programming
Enumerations, autoboxing, and annotations
The I/O classes
Generics
Lambda expressions
Modules
Records
Sealed classes
Text blocks
switch expressions
Pattern matching with instanceof
String handling
The Collections Framework
Networking
Event handling
AWT
Swing
The Concurrent API
The Stream API
Regular expressions
JavaBeans
Servlets
Much, much more