java1234
java1234
Feb 18, 2026 · Fundamentals

A Complete Illustrated Guide to Java Generics: Benefits, Usage, and Common Pitfalls

This article explains why raw collections are unsafe, how Java generics enforce compile‑time type safety, reduce casting, improve code readability, and boost performance, and it walks through generic interfaces, collections, custom generic classes, inheritance rules, diamond syntax, and common restrictions with concrete code examples and diagrams.

CollectionsGenericsJava
0 likes · 10 min read
A Complete Illustrated Guide to Java Generics: Benefits, Usage, and Common Pitfalls
Qunar Tech Salon
Qunar Tech Salon
Feb 24, 2015 · Fundamentals

Understanding Java 8 Type Annotations and JSR 308

The article explains Java 8 type annotations, how they extend annotation placement beyond declarations, their role in enabling compile‑time strong type checking via the Checker Framework, and discusses JSR 308’s goals, usage examples, and the trade‑offs of adopting this feature.

Checker FrameworkJSR 308Java
0 likes · 6 min read
Understanding Java 8 Type Annotations and JSR 308