Posts from Java

Find k numbers with most occurrences in an array in Java

By Deepak Reddy

In this module, we are going to discuss finding the most occurrences of elements in an array in Java. Here, we print the elements with the most frequency. we print all those elemen.... Read More

Java program to cyclically rotate an array by one

By Sri Vikas Prathanapu

In this tutorial, you will learn how to cyclically rotate an array by one in Java language. Arrays are homogeneous collections of elements. Because of its vast importance and uses .... Read More

Java program to find maximum distinct elements after removing k elements

By Deepak Reddy

In this module, we are going to discuss the maximum distinct elements from arr[] that are present after removing k elements from the given array. The input constraints are  follow.... Read More

Initializing a static Map using Stream in Java

By Niwedita Kumari

Before initializing a static map using Stream in Java, we need to know what is static. static is a non-access modifier in Java used as blocks, variables, methods and nested classes.... Read More

Serial sort vs Parallel sort in Java

By Caushik Subramaniam

A sort operation performed on an array can be either sequential or parallel. A sequential sort array can follow any sorting algorithm. There are many sequential sorting algorithms .... Read More

MQTT Protocol in Java

By Laksh Singhal

MQTT (Message Queuing Telemetry Transport) is a messaging transport protocol that works on Client-Server architecture with publish/subscribe messaging pattern. It is lightweight, .... Read More

Java Program to merge two files in a third file

By Divya Junuthula

In this tutorial, we are going to learn how to merge two files using Java Program. To merge the two files into the third file firstly, we need to create two files namely f1 and f2..... Read More

Find Articulation Points in a Graph using Java

By Ekta Sharma

Hello, in this tutorial, we are going to find Articulation Points in a Graph using Java Language. For that, we must know what is an articulation point first. To explain it better, .... Read More