
Become a Better Java Developer!
Modern Java: new versions & features, performance, and JVM insights – tutorials and deep dives, clearly explained and directly applicable.


Java Deep Reflection: How to Hack Integer and String
March 11, 2020Can 2 + 3 = 6 in Java? How deep reflection changes cached Integers and Strings – and what Java 16 and 26 require to still allow it.
Java ByteBuffer Explained: position, limit, flip(), compact()
February 26, 2020Java’s ByteBuffer step by step: position, limit, and capacity, put() and get(), flip() and compact() – with a diagram for every step.
Java FileChannel: Read, Write, Memory-Mapped Files, Locks
February 26, 2020Read and write files with FileChannel and ByteBuffer, memory-map them (also beyond 2 GB), and lock file regions – with a speed comparison.
Java DataOutputStream and DataInputStream (with Examples)
February 12, 2020How to write primitive data types and strings to binary files and read them back – with DataOutputStream and DataInputStream.
How to Copy, Move, and Delete Files and Directories (Java Files Tutorial)
January 29, 2020How to list directories and copy, move, rename and delete files and whole directory trees in Java – with the NIO.2 Files API.
File and Directory Names in Java: File, Path, Paths
January 15, 2020Filename, directory name, path – what’s the difference? How to build file paths in Java with File, Path, and Paths, independent of the OS.
Java Write to File: Files.writeString(), FileWriter, BufferedWriter
December 4, 2019How to write a string, lines, or a byte array to a file in Java: Files, FileWriter, BufferedWriter – and when buffering pays off.
How to Read a File in Java – to String, Byte Array, or Line by Line
November 21, 2019Read a file in Java – into a string, a byte array, or line by line: Files, FileReader and BufferedReader compared, plus character encoding.
How to Convert String to Int in Java – Peculiarities and Pitfalls
November 6, 2019How to convert a String to an int in Java? Pitfalls, parseInt() vs. parseUnsignedInt(), int vs. Integer – with benchmarks up to Java 27.
How to Convert int to String in Java – Which Way Is Fastest?
October 24, 2019Convert int to String in Java: four variants benchmarked with JMH on Java 8 to 27. Which one is fastest – and why it hardly matters today.Want Even More Knowledge?
My blog features many articles on Java, software architecture, and performance — from foundational concepts to advanced patterns.
If you want to go deeper, check out my trainings: hands-on, easy to understand, and directly applicable to your day-to-day project work. Instead of theory, I teach principles that help you write code that is better, more maintainable, and more performant in the long run.
Explore the Java Trainings