-
Core Java👁 Image
Java’s Type Erasure: The Generics Compromise That Haunts Us Today
How a backwards compatibility decision from 2004 still causes problems two decades later. Imagine buying a car where the GPS…
Read More » -
Core Java👁 Image
Java Generics “capture of ?” Example
Java generics introduced type parameters to provide compile-time type safety. Wildcards such as ? are used when a method or…
Read More » -
Core Java👁 spring-interview-questions-answers
Spring ParameterizedTypeReference Example
Deserializing generic types in Java can be challenging because of type erasure, which removes generic type information at runtime. This…
Read More » -
Java👁 Image
Polymorphism in Java Generics
Since the early days as Java programmer we all know how to instantiate and use Collection objects. A List interface…
Read More » -
Core Java👁 Image
Overload API methods with care
Overloading methods is a strong concept in API design, especially when your API is a fluent API or DSL (Domain…
Read More » -
Core Java👁 Image
Java Generics Quick Tutorial
Generics is a Java feature that was introduced with Java SE 5.0 and, few years after its release, I swear…
Read More »
