Posts related to tag: Java


Java Map.of() vs Map.ofEntries() Method

In Java, the Map.of() and Map.ofEntries() static factory methods were introduced in Java 9 as part of the java.util.Map interface […] Continue reading »

Java Stream peek() Method Example

In this blog, we’ll explore the Java 8 Stream peek() method, understanding its purpose and demonstrating how it can be […] Continue reading »

Understanding the Singleton Design Pattern in Java

In terms of software design patterns, the Singleton pattern holds a special place, revered for its ability to ensure that […] Continue reading »

Java 8- Count the occurrences of Character in String

In this Java 8 program, you will find how to  count the frequency of character in String using Stream API. […] Continue reading »

SOLID Design Principle

SOLID principles are a fundamental set of concepts in object-oriented programming (OOP) that aim to make software designs more understandable, […] Continue reading »

String intern() method in Java

In Java, the String class is one of the most fundamental classes, offering a wide array of methods to manipulate […] Continue reading »

ConcurrentModificationException in Java

ConcurrentModificationException is a runtime exception in Java that arises when multiple threads try to modify a collection at the same […] Continue reading »

Java transient Keyword

Java transient keyword allows developers to control the serialization process of Java objects. In this blog, we will explore the […] Continue reading »

Volatile Keyword in Java

In Java, the volatile keyword is used to declare a variable as volatile. When a variable is declared as volatile, […] Continue reading »

Functional Interface in Java 8

Java 8 introduced a significant enhancement known as lambda expressions, which allowed for more concise and expressive code. Alongside lambda […] Continue reading »

Java Atomic Variable

An atomic variable in Java refers to a variable that can be accessed and modified in a way that guarantees […] Continue reading »

1 2 3 4 9