java core

Your blog category

Using Generics with Java Libraries and Frameworks

Java Generics, introduced in Java 5, allow developers to define classes, interfaces, and methods with type parameters. This enables type safety and eliminates the need for explicit casting, while also making APIs cleaner and easier to use. Generics are widely used in Java libraries and frameworks such as the Java Collections Framework (JCF), Java Standard …

Using Generics with Java Libraries and Frameworks Read More »

Generic Reflection

Generic Reflection refers to using the Java Reflection API to inspect and analyze generic types (like List<String>, Map<String, Integer>, etc.) at runtime. Normally, due to type erasure, generic type information is not available at runtime. However, some type metadata is preserved and can be accessed using the java.lang.reflect package — particularly through Type, ParameterizedType, and …

Generic Reflection Read More »

Generic collections: List, Set, and Map

Concurrent collections are specialized data structures in programming that facilitate safe and efficient manipulation of shared data by multiple threads in a concurrent environment. Traditional collections, like lists, queues, or maps, often face issues like race conditions when accessed by multiple threads simultaneously. Concurrent collections address these issues by providing built-in thread-safe operations. Concurrent collections …

Generic collections: List, Set, and Map Read More »

Generic Enums and Annotations

Concurrent collections are specialized data structures in programming that facilitate safe and efficient manipulation of shared data by multiple threads in a concurrent environment. Traditional collections, like lists, queues, or maps, often face issues like race conditions when accessed by multiple threads simultaneously. Concurrent collections address these issues by providing built-in thread-safe operations. Concurrent collections …

Generic Enums and Annotations Read More »

Scroll to Top