The definitive guide to Java programming―thoroughly revised for Java SE 21
Fully updated for Java SE 21, Java™: The Complete Reference, Thirteenth Edition explains how to develop, compile, debug, and run Java programs. Best-selling programming author Herb Schildt and Dr. Danny Coward cover 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.
Recent additions to the Java platform, such as pattern matching in switch statements, record patterns, sequenced collections and virtual threads are also discussed in detail. Best of all, the book is written in the clear, crisp, uncompromising style that has made Schildt and Coward 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, including virtual threads
•
Enumerations, autoboxing, and annotations
•
The I/O classes
•
Generics
•
Lambda expressions
•
Modules
•
Records
•
Sealed classes
•
Text blocks
•
switch expressions, including with pattern matching
•
Pattern matching with instance of including with records
•
String handling
•
The Collections Framework
•
Networking
•
Event handling
•
AWT
•
Swing
•
The Concurrent API
•
The Stream API
•
Regular expressions
•
JavaBeans
•
Servlets
•
Much, much more
Dr. Danny Coward is a Chief Architect and Java Evangelist at Oracle. Coward is the sole Spec Lead for the Java API for Web Sockets for Java EE and Java SE/JavaFX and sole author of the WebSocket technical documentation at Oracle. Coward’s work leading WebSockets at Oracle provide him make him the leading expert on Java WebSocket programming. Coward has a decade of experience as a Java developer, where he now seeks to direct and simplify complex technologies to fulfill business objectives. Coward has specialized experience in all aspects of Java software and has written three versions of the Java Servlet spec.
Herbert Schildt has written extensively about programming for over three decades and is a leading authority on the Java language. Called “one of the world’s foremost authors of books about programming” by International Developer magazine, his books have sold millions of copies worldwide. Herb is the author of numerous books on Java, including
Java: A Beginner’s Guide, Herb Schildt’s Java Programming Cookbook, Introducing JavaFX 8 Programming, and
Swing: A Beginner’s Guide.
Dr. Danny Coward has worked on all editions of the Java platform and was a founding member of the JavaFX team and designed the Java WebSocket API. He is the author of two books on Java programming: Java WebSocket Programming and Java EE 7: The Big Picture.