Skip to content

Category Archives: Java Programs

SHA-1 or Secure Hash Algorithm 1 is a cryptographic hash function which takes an input and produces a 160-bit (20-byte) hash value. This hash value… Read More
The MD2 is a Message-Digest Algorithm. It is a cryptographic hash function developed by Ronald Rivest in 1989. It is optimized for 8-bit computers. The… Read More
HashMap is a part of Java’s collection since Java 1.2. It provides the basic implementation of Map interface of Java which stores the data in… Read More
Java Set is a part of java.util package and extends java.util.Collection interface. It does not allow the use of duplicate elements and at max can… Read More
Java Set is a part of java.util package and extends java.util.Collection interface. It does not allow the use of duplicate elements and at max can… Read More
The List is a child interface of Collection. It is an ordered collection of objects in which duplicate values can be stored. Since List preserves… Read More
A Stream is a sequence of objects that support various methods which can be pipelined to produce the desired result. An array is a group… Read More
Java Set is a part of java.util package and extends java.util.Collection interface. It does not allow the use of duplicate elements and at max can… Read More
A stream is a sequence of objects that supports various methods which can be pipelined to produce the desired result. Slice of a Stream means… Read More
Given a number N. The task is to write a program to find the Nth term in the below series:   5, 13, 25, 41, 61...… Read More
Given a number N. The task is to write a program to find the Nth term in the below series:   1, 1, 2, 6, 24…… Read More
The Consumer Interface is a part of the java.util.function package which has been introduced since Java 8, to implement functional programming in Java. It represents… Read More
The BiConsumer Interface is a part of the java.util.function package which has been introduced since Java 8, to implement functional programming in Java. It represents… Read More
Given a string, the task is to check whether a string contains only alphabets or not using ASCII values in JAVA. Examples: Input : GeeksforGeeks… Read More
In hashing there is a hash function that maps keys to some values. But these hashing function may lead to collision that is two or… Read More

Start Your Coding Journey Now!