
Explore Java 14 new features, including helpful pointer exceptions, pattern matching for instanceof (preview), records (preview), switch expressions, and text blocks, plus Java flight recording and garbage collection changes.
Trace Java version history from Java 9's six-month release cycle to LTS options, non-LTS releases, and preview features enabled with --enable-preview.
Install java 14 using two methods, downloading from Oracle or OpenJDK, and configure java_home and path variables to point to the JDK 14 installation.
Install java 14 in IntelliJ by downloading OpenJDK from the JetBrains site, then add the JDK in Project Structure and set it as the project SDK.
Configure IntelliJ to enable Java 14 preview features by setting project and module language levels to 14 preview (records, patterns, text blocks) and aligning the Java compiler target to 14.
Learn local variable type inference in Java (var): how the compiler infers types from the right-hand side to reduce boilerplate, with examples in loops, streams, arrays, and try-with-resources.
Explore Java 14's JEP 358: helpful null pointer exceptions reveal the exact null variable. Enable the VM option show code details in exception messages, as shown in a city case.
Explore pattern matching for instanceof in Java, enabling concise, safe type checks and use of a pattern variable to avoid explicit casts, with scope considerations and inline checks.
Explore Java records, a concise data carrier feature in Java 14 that auto-generates boilerplate for domain classes, including fields, accessors, constructors, equals, hashCode, and toString.
Java 14 switch expressions replace fall through with arrow labels and allow expression switches and yield, addressing scope and return value issues while staying backward compatible.
Explore Java 14 text blocks, or X blocks, to write multi-line strings with preserved indentation and line breaks, replacing escapes and concatenation, and compare with string literals.
Discover the JDK flight recorder and JDK mission control, with theory and practical guidance to diagnose memory and performance issues in Java applications.
Explore how the JDK flight recorder profiles a Java application, captures diagnostics, and reveals root causes of crashes or performance anomalies through event data.
Learn to run and analyze the JDK flight recorder with command line and jcmd tools, configure duration and continuous recording, and explore mission control insights on gc and jvm internals.
Learn about GFR event streaming for the JDK flight recorder, including a continuous consumption API, low overhead, and coexistence with non streaming recordings, for real time dashboards and alerts.
Explore implementing event streaming with the recording stream class, filtering CPU load and other metrics, using default configurations, starting the stream in blocking or async mode, and setting threshold alerts.
Describes creating event streams with the event stream interface using three factory methods: open repository with argument, open repository without argument, and open file by path to a recording file.
Create custom events by extending the Java Flight Recording API's Event class, annotating name, description, and field labels. Trigger, commit, and listen to events periodically to measure performance.
Explore the JFR flight recorder in Java and use the GFI tool to inspect flight recordings. Print and filter events such as CPU load, garbage collection, and custom events.
Java 14 introduces garbage collection updates, making G1 GC the default and adding NUMA-aware memory allocation optimizations for large heaps, while s.m garbage collector is removed.
With Java's 6-monthly release schedule, new features are coming every 6 months now. Considering the post-COVID scenarios and job market, it has become necessary for candidates to learn new features and make an impression in the Java Technical interviews. If you have attended Java interviews, you must have noticed that the interviewer definitely asks for the new features of Java. This actually shows the candidate's mindset for learning and makes a great impression.
This course would be a one-stop solution to learn new features of Java. You will not have to google for the new features anymore. In this course, I will cover -
Important pre-Java 14 features (Still to be added) - Modularity, Local Variable Type Inference, and new HttpClient.
Java 14 new features
Post Java 14 features as and when announced (Next release would be Java 15 in September 2020)
I would suggest you learn by doing. Along with the tutorials, you should practice the code. I have attached the coding examples with the tutorials if you want to take any references. After finishing these tutorials, you should use Java 14 in your real-life projects. It will make a good impression on your teammates and code reviewers. You will stand out from your teammates
If you are a Java programmer and learning new features excites you, then I am super excited to take you on board for this course.
Course Overview:
This course begins by introducing the changes introduced by Oracle since Java 9 about 6 months release cadence and Long Term Support. After that, I have demonstrated the installation of Java 14 and corresponding changes in IntelliJ IDE. Then I have added the new features introduced in JDK 14 release - Helpful NullPointerExceptions, Pattern Matching for InstanceOf, Records, Switch Expressions, Text Blocks, detailed explanation on Flight Recorder and Event Streaming with Flight Recorder. Lastly, we have covered Garbage Collection improvements.