Posts from Java

Z algorithm in Java

By Aakash Puri

In this tutorial, you will learn what is Z algorithm and how to implement it in Java Programming Language. What is Z-Algorithm? Z Algorithm is generally used to find a specific pat.... Read More

Thread suspend() method in Java

By Abhisikta Chakraborty

In this tutorial, we will talk about a special method of the Thread class. In order to understand the thread suspend() method in Java, we need to first understand the life cycle of.... Read More

Overriding toString() method in Java

By Ranjeet V

In this tutorial, we will talk about overriding the toString() method in Java. This method belongs to the Object class. To know more about this, see this: toString() method in Java.... Read More

Labelled break statement in Java

By Ranjeet V

In this tutorial, we will talk about the labelled break statement in Java. In Java, we can use a label with the break statement. This label indicates which loop to exit. Labels can.... Read More

Implementation of Diffie-Hellman Algorithm in Java

By Divya Junuthula

In this tutorial, we are going to learn about the Diffie-Hellman Algorithm in Java. First of all, we will learn what is Diffie-Hellman Algorithm key exchange algorithm. The Diffie-.... Read More

Java Program to print even length words in a String

By Satyam Chauhan

Welcome! In this tutorial, we will learn how to develop a Java program to print even length words in a string entered by the user. So, let’s start with the code: import java..... Read More

Check if URL is valid YouTube video URL or not in Java

By Anisha Gupta

In this tutorial, we will learn if the URL is a valid YouTube video URL or not in Java. Youtube URL contains a pattern. We are given a String and we check if a String given contain.... Read More

Covariant return types in Java

By Anisha Gupta

In this tutorial, we will learn about covariant return types in Java. This concept is based on Method Overriding in Java. To understand the concept of method overriding, read: Runt.... Read More