Posts from Java

Implement an Interface using an Enum in Java

By Ranjeet V

Hello everyone, in this post, we will learn how to implement an interface using an Enum in Java. As we know, Enums are used to represent a group of named constants. For example, we.... Read More

Implementation of Associative Array in Java

By Ranjeet V

In this post, we will learn how to implement Associative Array in Java. An associative array is an array with named indexes. It consists of elements in form of key-value pairs wher.... Read More

Java.lang.Compiler class in Java

By Ranjeet V

In this tutorial, we will learn about the Compiler class in Java. This class provides support and related services to java-to-native-code compilers. Declaration The declaration of .... Read More

Super keyword in Java with examples

By Ranjeet V

Hello everyone, in this tutorial, we will talk about the super keyword in Java. The super keyword in Java is used as a reference variable. It can be used to refer to the parent cla.... Read More

Josephus problem and recursive solution in Java

By Shoif Md Mia

In this tutorial, we will be learning Josephus problem and its recursive solution in Java. Suppose we have p persons standing in a circle. In the beginning, there is a sword in som.... Read More

Kahan Summation Algorithm Implementation in Java

By Monika Maheshwari

In this section, we are going to learn about Kahan Summation Algorithm and implement it in the Java program. This algorithm is also known as compensated summation, it is generally .... Read More

Inheritance vs Delegation in Java

By Abhay Shah

The following tutorial explores Inheritance vs Delegation in Java language. What is Inheritance? Inheritance is among the four main features (Encapsulation, Abstraction, Polymorphi.... Read More

Validate an IP address using Regular Expressions in Java

By Abhay Shah

An IPv4 IP Address is a 32-bit number that can be assigned to several devices in a network for identification, communication, etc. In the following tutorial, we will learn how to v.... Read More