Java
Write robust Java avoiding null traps, equality bugs, and concurrency pitfalls.
Popular
New
Join 2,477+ developers using this skill
skill
Development & Code Tools
Write robust Java avoiding null traps, equality bugs, and concurrency pitfalls.
Real data. Real impact.
Growing
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
| Topic | File |
|---|---|
| Nulls, Optional, autoboxing | |
| Collections and iteration traps | |
| Generics and type erasure | |
| Concurrency and synchronization | |
| Classes, inheritance, memory | |
| Streams and CompletableFuture | |
| Testing (JUnit, Mockito) | |
| JVM, GC, modules | |
== compares references, not content — always use .equals() for stringsequals() must also override hashCode() — HashMap/HashSet break otherwiseOptional.get() throws if empty — use orElse(), orElseGet(), or ifPresent()ConcurrentModificationException — use Iterator.remove()new T() or instanceof List<String>volatile ensures visibility, not atomicity — count++ still needs synchronizationInteger i = null; int x = i; crashesInteger == Integer uses reference for values outside -128 to 127 — use .equals()AutoCloseable, Java 7+thenApply vs thenCompose — compose for chaining CompletableFuturesserialVersionUID mismatch breaks deserialization — always declare explicitlyNo automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.