
This video will give you an overview about the course.
The Java release model has changed, and so should our strategies to adopt new versions of Java. We will look at two strategies: one for start-up-like companies and another for more traditional enterprise-like companies.
• Look at the new Java release train
• Learn about frequent feature releases and when to adopt them
• Explore new long-term support releases and why they are useful.
Migration to Java modules intimidates many developers. Learn more about modularity in Java and different ways to introduce it to the already existing code.
• Review structure of module-info.java class
• Learn about the new module path
• Glimpse at different migration strategies
Java eliminated some dead weight such as Corba or Applets, but also removed modules that are still used by many developers, like Java EE modules. Learn about what has been removed and get ready for a change!
• Learn about enhanced deprecation and the new deprecation/removal workflow
• Look at major components that have been removed
• See how to create lightweight runtime images with JLink
Java’s critics claim that its syntax is too verbose and redundant. This is partially true. The new local variable type inferences addresses this problem, thus making Java more concise and better maintainable.
• Create more concise code with `var`
• Use var with anonymous classes
• Learn good and bad practices with `var`
When different popular frameworks supporting reactive streams emerged, they were not sharing the same interfaces making migrating tedious and the learning curve steeper. The new interfaces from the Flow class provide a golden standard for reactive streams to be supported by these frameworks.
• Get a high-level overview of reactive programming
• Learn how to implement a simple publisher and a subscriber
• Add a second subscriber to the publisher
Many frequently-used methods on String or Files were not implemented as a part of the core API, and developers had to implement them themselves or use a third-party library. Now, these methods became a part of Java and the community can enjoy using these well-tested and reviewed methods.
• Understand how to correctly work with whitespaces in String with the new API
• Look at how to work with multi-line strings, how to split a string into lines, and how to indent strings
• Learn about new methods in the Files class
Java follows the general trend in programming to be more functional and provides new methods to easily create pre-populated immutable lists and maps. Optional class is getting an upgrade too.
• Create immutable pre-populated lists and maps with the new API
• Learn the new methods available in the Optional class
With frequent releases and new features in Java delivered faster than ever, it’s becoming more important to test the new features quickly and easily. JShell allows us to do just that. We can experiment with the new features without any additional set-up.
• Start JShell
• Create new variables, methods, and classes in JShell
• Try out JShell commands
The new arrow-based syntax makes the switch more expressive and less error-prone.
• Identify problems with the “old” colon-based switch
• Address these problems with the new arrow-based switch expressions
• Use a complex block in the right part of a switch branch
Garbage collectors (GCs) help the developers to allocate and de-allocate the memory. The pauses created when GC collects unused memory can be annoying and influence the application performance.
• Review evolution of GCs in recent versions of Java
• Learn about the new default garbage collector
• Can a no-op GC be useful? Get the answer with Epsilon GC
With our programs becoming more complicated, it’s important to make sure they provide a performance according to our fast-pace world’s standards.
• Get an overview of different strategies tackling the performance from different angles
• Learn about an easy way to improve performance by using more efficient data types
• Explore new tools for monitoring and benchmarking
Benchmarking the performance is hard. Doing it correctly is even harder.
• Learn about different types of benchmarks
• Create microbenchmarks with JMH
• Run the benchmarks and compare the results
While Java 12 is a not a long-term support release, it brings better performance.
• See how the start-up time can be improved with the default CDS archive
• Review the changes to G1 GC making it more efficient
• Learn about modern low-pause-time GCs bringing increased responsiveness
As a developer, every day you need to learn new technologies… and quickly. With frequent Java releases, you need to constantly update your knowledge of Java too. This short course will equip you with insights into the newest key features of Java—in no time.
We start by explaining the new release model and how it affects you. This course goes beyond Java's (in) famous modularity which allows us to partition a system into modules with clear dependencies. You'll learn to write more concise code with the coolest new features, including local variable type inference (var) and the improved API for strings, files and collections. You will also understand how to work with very popular reactive streams. The course finishes with a description of the new enhancements you can apply to improve the performance of your code.
By the end of this short course, you'll know how to use the most powerful features of modern Java to write faster and more readable programs.
About the Author
Tatiana Fesenko is a Senior Java developer with a proven track record in bringing products from concept to implementation. Tatiana's background includes working in four countries with people from almost all continents in corporate, semi-public, and start-up environments. Driven, thorough, and passionate about technology, Tatiana has worked professionally with Java for more than 15 years!