Comparable and Comparator

One of the most important topics in java comparable and comparator. Both are interface in java and are used to compare the objects. In this post, we will discuss all the detail of java comparable and comparator. Here is the table content of the article will we will cover this topic.1. What is the Comparator … Read more

equals() and hashcode() in java

Before starting the the contract between equals() and hashCode() in Java. We will recommend you should learn about the hashCode() and equals() method. You should learn about their default implementation and how to correctly override them. In this article, we will discuss the most important topic about the equals() and hashCode() in Java. Many programmers want … Read more

Garbage collector in java

Garbage collection is a process of removing unused objects from heap memory. It works with a Garbage collector. There are different kinds of garbage collector available in Java that collects different area of heap memory. In this article, we will discuss the Garbage Collector and how many types of garbage collectors are used. Here is … Read more

Garbage Collection in Java

You must hear about finalize() method and Garbage collection in Java. Lots of questions in programmers’ minds and viewpoints on it. We will try to explain it in detail and will cover some most important points like – When is it needed, how often should it run, how to know when it is not operating … Read more

Cloning in Java

Cloning in Java is an important topic for developers. By the use of cloning, we can create an exact copy of an Object.  It creates a new instance of the class of the current object and initializes it. It always creates a new object(Cloned object) with exactly the contents of the current object. Let’s say … Read more

toString() method in Java

In this article, we will learn what is toString() method in Java. Most of the programmers may have good knowledge about the toString() method but we want to share some things about the toString() method in java.Here is the table content of the article will we will cover this topic. 1. What is the toString() … Read more

equals() method in java

In this article, we will discuss the most important topic, which is the equals() method in Java.Everyone knows the equals() method in java is used to compare the objects. But how we can use it? How to override the equals() method in java in user-defined classes. Here is the table content of the article will … Read more

Java hashCode() method

In this article, we will discuss the most important topic, which is the hashCode() method in Java or java hashCode() method.Everyone knows the hashCode() method is used with equals() method to compare the objects. But how we can use it? How to override the java hashCode() method in user-defined classes. Here is the table content … Read more

notify() method in Java

In this article, we will discuss the notify() method in Java. As you already know notify() method is used with the wait() method. We will recommend you read the wait() method before the move further. Here is the table content of the article will we will cover this topic.1. What is the notify() method in … Read more

clone() method in java

In this article, we will discuss what is the clone() method in java. It is the most important question in the interview. Most of us already know about cloning but in this article, we will discuss some unique things about cloning. Here is the table content of the article will we will cover this topic. … Read more