Posts related to tag: Java


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 »

Finding a Specific Digit in a Number using Java

On this page, we’ll explore a simple yet common problem: finding a specific digit in a given number using Java. […] Continue reading »

Overview of Java 8 Date and Time API

Java 8 introduced a modern Date and Time API to address the shortcomings of the older java.util.Date and java.util.Calendar classes. […] Continue reading »

Java Records: Simplify Data Classes

The record keyword was introduced in Java 16. It is a feature that simplifies the creation of classes for data […] Continue reading »

Java ReentrantLock Example

In Java, ReentrantLock is a synchronization mechanism provided by the java.util.concurrent.locks package. It is an implementation of the Lock interface […] Continue reading »

Java Collections.min() and Collections.max() Methods

In this article, we will explore min() and max() methods of the Collections utility class. In Java, the Collections class […] Continue reading »

Method Reference in Java 8

In Java, method reference is a feature introduced in Java 8 that allows you to refer to a method by […] Continue reading »

1 2 3 4 8