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


compareTo, Comparable, Comparator – Comparing Objects in Java
October 6, 2020How to compare objects in Java: Comparable and compareTo() define the natural order, Comparator.comparing() any other – with examples.
Counting Sort – Algorithm, Java Code, Time Complexity, Stability
September 2, 2020How does Counting Sort work? Step by step with diagrams and Java code – plus time complexity O(n + k), space complexity, and stability.
Heapsort (Heap Sort) – Algorithm, Java Code, Time Complexity
August 19, 2020How does heap sort work? Step by step with illustrations and Java code – and why its time complexity is O(n log n) even in the worst case.
Merge Sort – Algorithm, Java Source Code, Time Complexity
August 5, 2020How does Merge Sort work? With illustrations and source code. How to determine its time complexity (without complicated math)?
Quicksort in Java – Algorithm, Source Code, Time Complexity
July 22, 2020How does Quicksort work? With illustrations, Java code, and benchmarks. How to determine its time complexity without complicated math?
Bubble Sort – Algorithm, Source Code, Time Complexity
July 8, 2020How does Bubble Sort work? With illustrations and Java code. Best, average, and worst case time complexity – without complicated math.
Selection Sort in Java – Algorithm, Code, Time Complexity
June 25, 2020How does Selection Sort work? With illustrations and Java code. How do you determine its time complexity – and why is it not stable?
Insertion Sort Time Complexity (Best, Average, Worst), Java Code
June 11, 2020How does Insertion Sort work, and why is it O(n²) in the average and worst case but O(n) in the best case? With Java code and measurements.
Sorting in Java: Arrays, Lists, Objects [Tutorial]
June 11, 2020How to sort primitive data types and objects of any class in Java – also in parallel? And which sorting algorithms does the JDK use?
Sorting Algorithms: Time Complexity and Stability Compared
June 11, 2020The most important sorting algorithms compared: time complexity, space, and stability from Insertion Sort to Radix Sort – with a table.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