On this page, you find an overview of how-tos and tutorials about Java.
In Project Amber, new Java language features are being developed such as switch expressions, text blocks, records, pattern matching, and sealed classes.
Every new Java release brings big and small changes:
In addition, legacy features are regularly marked as "deprecated", then as "deprecated for removal", and later completely removed from the JDK.
In this series of articles, you will learn everything about the most important changes in each Java release.
Java 18 Features (with Examples)
Java 17 Features (with Examples)
Java 16 Features (with Examples)
Java 15 Features (with Examples)
Java 14 Features (with Examples)
Java 13 Features (with Examples)
Java 12 Features (with Examples)
Java 11 Features (with Examples)
Java 10 Features (with Examples)
This category covers core Java functionality, such as String processing, object conversion, and random number generation, as well as data structures, such as collections, maps and sets, trees, queues, deques, and stacks.
Generating Random Numbers in Java
Comparator, Comparable, compareTo – Comparing Java Objects
Java Queue, Deque, and Stack: Ultimate Guide
This section covers advanced Java topics such as reflection, concurrency, garbage collection, and the Java memory model.
Java ByteBuffer Example: How to Use flip() and compact()
File
, Path
, and Paths
FileChannel
and ByteBuffer
This category deals with the performance of Java code, i.e., with which Java means a particular task can be executed most efficiently - possibly depending on the Java version. Not only is it important to know how to optimize code, but also when it is better to leave the optimization to the Java Runtime and the Hotspot Compiler.
How to Convert String to Int in Java – Peculiarities and Pitfalls
How to Convert int to String in Java – The Fastest Way
This section covers topics related to development productivity, i.e., how to develop clean, professional, and maintainable Java code faster and more efficiently.
How to Change Java Versions in Windows (Updated for Java 18)
How to Write Better Code with Static Code Analyzers
How to Write Quality Code and Enforce Java Code Standards