Skip to content

Java

Practical Java tutorials covering Javalin, collections, null safety, equality, memory management, and backend development.

All Java Guides

Deep dives, examples, and production tips

8 guides
Java

Javalin Servlets and Filters

Master Javalin Servlets and Filters with practical examples. Learn essential concepts through easy-to-follow code snippets perfect for Java beginners.

Java

HashMap vs Hashtable in Java

Learn the key differences between HashMap and Hashtable in Java, including synchronization, performance, and usage. Discover when to use each and explore modern alternatives like ConcurrentHashMap.

Java

How to Avoid Checking for Nulls in Java

Learn how to avoid null checks in Java using Optional, the Null Object Pattern, annotations, and modern libraries. Discover best practices for writing cleaner, null-safe code.

Java

Create, Detect, and Handle Memory Leaks in Java

Learn what is memory leak in Java, how to create, detect, and handle memory leaks in Java and Spring Boot. Includes examples, tools, and tips for fixing stack and byte array memory leaks.

Java

Java NullPointerException, and How Do I Fix It?

Learn Java what a NullPointerException is, why it occurs, and how to fix and prevent it in your code. Explore practical solutions, best practices, and resources for handling null references effectively.