Posts from Java

toString() method in Java

By Avantika Singh

Hello Learners, today we are going to learn about the toString method in Java. You all know that the object class is the parent class of all other classes in Java. The object class.... Read More

Use of double colon operator in Java

By Krishna Lakhi

Hey Everyone! In this article today, we will learn about the use of a double colon operator in Java. Double Colon Operator in Java Usually, lambda expressions are used to create an.... Read More

How to terminate a Java Program

By Ranjeet V

In this Java tutorial, we will talk about the ways to terminate a Java Program with example. Normally, we use the return statement in the main() method to exit the program. In this.... Read More

Exit from a loop in Java with examples

By Ranjeet V

Hello everyone, in this post, we are going to learn how to exit from a loop in Java. As in many other programming languages, in Java too, we have loops that we can use to execute a.... Read More

How to convert int to char in Java

By Shubham Loya

Today, in this tutorial, you will get to know how to convert int to char in Java. So you will learn how to convert int to char and see various methods to convert int to char in Jav.... Read More

Difference between HashMap and HashTable in Java

By Avantika Singh

Hello Learners, today we are going to learn about the difference between HashMap and HashTable in Java. HashMap and Hashtable both store data in a key and value pair. Both the clas.... Read More

Difference Between Iterator and Enumeration in Java!

By Avantika Singh

Hello Learners, today we are going to learn about the difference between Iterator and Enumeration in Java. Iterator and Enumeration both interfaces are used to traverse over a Coll.... Read More

Check if a number is special or not in Java

By Akash Tripathi

Today we will how to check whether a number is a Special number or not in Java. But before that, we should know what is a special number. A special number is a number such that the.... Read More