0%

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
Who This Book Is For

Those with prior experience with Java who want a quick and handy reference. 

Table of Contents

  1. Cover
  2. Front Matter
  3. 1. Hello World
  4. 2. Compile and Run
  5. 3. Variables
  6. 4. Operators
  7. 5. String
  8. 6. Arrays
  9. 7. Conditionals
  10. 8. Loops
  11. 9. Methods
  12. 10. Class
  13. 11. Static
  14. 12. Inheritance
  15. 13. Overriding
  16. 14. Packages and Import
  17. 15. Modules
  18. 16. Access Levels
  19. 17. Constants
  20. 18. Interface
  21. 19. Abstract
  22. 20. Enum
  23. 21. Exception Handling
  24. 22. Boxing and Unboxing
  25. 23. Generics
  26. 24. Lambda Expressions
  27. Back Matter
18.222.22.244