Here’s a comprehensive list of design patterns, categorized into the three main types: Creational, Structural, and Behavioral. These patterns, popularized by the “Gang of Four”
Tag: Core Java
In concurrent package, ArrayBlockingQueue, LinkedBlockingQueue, PriorityBlockingQueue, and DelayQueue are implementations of the BlockingQueue interface. Each serves distinct purposes based on their structure and behavior. Below
Java’s Collections provides a set of interfaces and classes to manage and manipulate groups of objects. Below is a comprehensive list of the key interfaces
Method overloading vs. method overriding serve different purposes and operate at different levels.Lets understand clearly, compare them, and provide examples to make it crystal clear.
Immutable class is a key concept in Core Java that ensures an object’s state cannot be changed after creation. Lets explore with a practical example
The ExecutorService interface builds on the Executor interface to manage thread pools and execute tasks asynchronously. Java provides several implementations via the Executors utility class,
Java’s concurrency framework, primarily housed in the java.util.concurrent package, provides a rich set of interfaces and classes to manage multithreading, synchronization, and concurrent data structures.
The sorted() method in Java Streams is used to sort elements of a stream in either natural order or using a custom comparator. Syntax of
Sorting JSON data using Java Streams is useful when working with API responses, configuration files, or stored data. Let’s break it down step by step.
1. Count the Characters from a String 2. Convert character into lower case 3. Count the unique letters 4. Extract all words starting with a