Book description
Quickly gain the insight necessary to address a multitude of Java coding challenges using this succinct reference guide, Java 17 Quick Syntax Reference, Third Edition. Short, focused code examples will help you learn and master various existing and new Java source code elements.
This edition includes the following additions to Java SE and OpenJDK, through Java 17: Pattern matching for switch and instanceof, Sealed classes and interfaces, Switch expressions, Text block multiline strings, Java module system, Private methods in interfaces, and Type inference for local variables.
You won’t find any technical jargon, bloated samples, drawn out history lessons or witty stories in this book. What you will find is a language reference that is concise, to the point and highly accessible. The book is packed with useful information and is a must-have for any Java programmer.What You Will Learn
- Run a Java file with a single command
- Learn what a switch expression is and how to use it
- Use pattern matching
- Code with Java modules
- Create text blocks to handle multiline strings
- Learn what sealed classes are and how to use these and more
Table of contents
- Cover
- Front Matter
- 1. Hello World
- 2. Compile and Run
- 3. Variables
- 4. Operators
- 5. String
- 6. Arrays
- 7. Conditionals
- 8. Loops
- 9. Methods
- 10. Class
- 11. Static
- 12. Inheritance
- 13. Overriding
- 14. Packages and Import
- 15. Modules
- 16. Access Levels
- 17. Constants
- 18. Interface
- 19. Abstract
- 20. Enum
- 21. Exception Handling
- 22. Boxing and Unboxing
- 23. Generics
- 24. Lambda Expressions
- Back Matter
Product information
- Title: Java 17 Quick Syntax Reference: A Pocket Guide to the Java SE Language, APIs, and Library
- Author(s):
- Release date: October 2021
- Publisher(s): Apress
- ISBN: 9781484273715
You might also like
book
Modern C Quick Syntax Reference: A Pocket Guide to the Language, APIs, and Library
Discover how C's efficiency makes it a popular choice in a wide variety of applications and …
book
Sams Teach Yourself Java in 24 Hours, Eighth Edition
Computer programming with Java is easier than it looks. In just 24 lessons of one hour …
book
Java 13 Revealed: For Early Adoption and Migration
Explore the new Java programming language features and APIs introduced in Java 10 through Java 13. …
book
Java 17 Recipes: A Problem-Solution Approach
Quickly find solutions to dozens of common programming problems encountered while building Java applications, with recipes …