java core

Your blog category

Generic methods

A Generic Method is a method that can operate on different types of data. Instead of hardcoding a data type, it uses a type parameter (like <T>) to define the type when the method is called. Generic methods allow for: Code reuse Compile-time type safety No need for casting Syntax Program-1: Simple Generic Method Example …

Generic methods Read More »

Wildcards Generics (Upper bounded, lower bounded, and unbounded)

Wildcard generics in Java provide flexibility in working with generic types by allowing unknown or partially constrained types in method parameters, return types, or fields. They are denoted by the ? symbol and are useful when you need to work with a range of types without specifying an exact type. Important Concepts of Wildcard Generics …

Wildcards Generics (Upper bounded, lower bounded, and unbounded) Read More »

Enhanced JEP 388: Windows/AArch64 Port

JEP 388: Windows/AArch64 Port introduces the official support for running Java on Windows systems with AArch64 (ARM 64-bit) architecture in Java 17. Prior to this enhancement, Windows support for ARM architecture was limited and often required workarounds or was not as fully supported as on x64 (Intel/AMD) systems. This improvement brings AArch64 support on Windows …

Enhanced JEP 388: Windows/AArch64 Port Read More »

Enhanced JEP 395: Sealed Classes (Preview)

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 …

Enhanced JEP 395: Sealed Classes (Preview) Read More »

Scroll to Top