We may earn an affiliate commission when you visit our partners.

Java 14

Save
May 11, 2024 3 minute read

Java 14 is the fourteenth major release of the Java programming language. It was released on March 17, 2020, and is a long-term support (LTS) release. Java 14 introduces a number of new features and improvements, including:

New Features

Some of the new features introduced in Java 14 include:

  • Pattern matching for switch: This feature allows you to use pattern matching to compare a switch expression against a series of patterns. This can make your code more concise and easier to read.
  • Records: Records are a new type of lightweight data structure that is similar to a class. Records are immutable and can be used to represent data that does not need to be modified.
  • Local variable type inference: This feature allows the compiler to infer the type of a local variable from its initializer. This can make your code more concise and easier to read.
  • Text blocks: Text blocks are a new way to represent multiline strings. Text blocks can be indented and can contain newlines and whitespace. This can make your code more readable and easier to maintain.
  • Switch expressions: Switch expressions are a new way to write switch statements. Switch expressions are more concise and easier to read than traditional switch statements.

Improvements

In addition to the new features, Java 14 also includes a number of improvements to the language and runtime. These improvements include:

Path to Java 14

Take the first step.
We've curated one courses to help you on your path to Java 14. Use these to develop your skills, build background knowledge, and put what you learn to practice.
Sorted from most relevant to least relevant:

Share

Help others find this page about Java 14: by sharing it with your friends and followers:

Reading list

We've selected 13 books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in Java 14.
A comprehensive guide to Java concurrency that covers all aspects of writing concurrent code. is suitable for experienced Java programmers who want to learn how to write concurrent code that is correct and efficient. The authors are renowned experts in Java concurrency and the book has won numerous awards.
A comprehensive reference guide to Java 14, covering all aspects of the language. is suitable for both beginners and experienced Java programmers who want to learn more about the latest version of the language.
A practical guide to writing effective and efficient Java code. is suitable for experienced Java programmers who want to learn how to write high-quality code. The author renowned expert in Java programming and the book has won numerous awards.
A collection of recipes for solving common Java programming problems. is suitable for experienced Java programmers who want to learn how to solve common problems in the language. The author renowned expert in Java programming and the book has won numerous awards.
A guide to implementing domain-driven design in Java. is suitable for experienced Java programmers who want to learn how to design and implement software that is maintainable and extensible. The author renowned expert in domain-driven design.
A hands-on guide to Java 14 that covers all aspects of the language. is suitable for experienced Java programmers who want to learn how to use the latest features of the language. The authors are renowned experts in Java programming and the book has won numerous awards.
A modern and comprehensive guide to Java 14, covering the latest features of the language. is suitable for both beginners and experienced Java programmers who want to learn more about the latest version of the language. The authors are renowned experts in Java programming.
A guide to using Java for enterprise development. is suitable for enterprise developers who want to learn how to use Java for enterprise development. The author renowned expert in enterprise development.
A classic guide to Java that teaches the language from the ground up. is suitable for both beginners and experienced Java programmers who want to learn more about the fundamentals of the language. The author renowned expert in Java programming.
Provides a comprehensive overview of Java 14, covering the basics of the language as well as new features introduced in this release. is suitable for beginners who are new to Java or those who want to learn about the latest version of the language.
A guide to using Java for Android development. is suitable for Android developers who want to learn how to use Java for Android development. The author renowned expert in Android development.
A guide to using Java for web development. is suitable for web developers who want to learn how to use Java for web development. The author renowned expert in web development.
A beginner-friendly guide to Java that uses a visual and interactive approach to teaching the language. is suitable for those who are new to Java or those who want to learn the basics of the language in a fun and engaging way.
Table of Contents
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2025 OpenCourser