Skip to content

Tag Archives: Java 8

JavaSound is a collection of classes and interfaces for effecting and controlling sound media in java. It consists of two packages. javax.sound.sampled: This package provides… Read More
As we all know, while solving any CP problems, the very first step is collecting input or reading input. A common mistake we all make… Read More
Given 3 positive integers P, Q, and R, the task is to find the number of pairs such that both the elements are in the… Read More
Here we will be discussing out how we can, we improve the performance while using HashMap in Java, the Importance of the hashCode() contract and… Read More
A Message Queues, allow one or more processes to write a message to be read by other processes. A message queue is implemented as a… Read More
Though C++ is the dominating language in the competitive programming universe, there is a fair share of users who still continue to use Java as… Read More
Here we will be discussing how to generate Junit test cases using Randoop along with sample illustration and snapshots of the current instances. So basically… Read More
Default method in Java is a method in java which are defined inside the interface with the keyword default is known as the default method.… Read More
Creating Thread Safe ConcurrentHashSet is not possible before JDK 8 because of the java.util.concurrent package does not have a class called ConcurrentHashSet, but starting with… Read More
Multithreading in Java is a process of executing two or more threads simultaneously to maximum utilization of CPU. Multithreaded applications execute two or more threads… Read More
The string can be repeated N number of times, and we can generate a new string that has repetitions. repeat() method is used to return… Read More
In Java, we have already defined, exception classes such as ArithmeticException, NullPointerException etc. These exceptions are already set to trigger on pre-defined conditions such as… Read More
API is an acronym for Application Programming Interface, which is software and the java streams work on a data source. Consider a stream like a… Read More
Data Structures are a boon to everyone who codes. But is there any way to convert a Data Structure into another? Well, it seems that… Read More
A lambda expression is one or more line of code which works like function or method. It takes a parameter and returns the value. Lambda… Read More