Java 17 Quick Syntax Reference

  • 1h
  • Mikael Olsson
  • Apress
  • 2021

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.

In this Book

  • Introduction
  • Hello World
  • Compile and Run
  • Variables
  • Operators
  • String
  • Arrays
  • Conditionals
  • Loops
  • Methods
  • Class
  • Static
  • Inheritance
  • Overriding
  • Packages and Import
  • Modules
  • Access Levels
  • Constants
  • Interface
  • Abstract
  • Enum
  • Exception Handling
  • Boxing and Unboxing
  • Generics
  • Lambda Expressions
SHOW MORE
FREE ACCESS

YOU MIGHT ALSO LIKE

Rating 4.6 of 169 users Rating 4.6 of 169 users (169)
Rating 4.4 of 155 users Rating 4.4 of 155 users (155)