Press "Enter" to skip to content

Posts published in “Java”

Java ArrayBlockingQueue add() Method

The add() method of ArrayBlockingQueue appends the specified element at the end of the queue. It returns true on the successful insertion of the element.…

Convert String to int in Java

In this article, we will look at the ways to convert String to int in Java using Integer.parseInt() and Integer.valueOf() methods. One of the main…

Functional Interface in Java

A functional interface in java has only one abstract method, and it can have any number of default and static methods. It makes it easier…

Method Overloading in Java

Method Overloading in Java is a concept that allows a class to have more than one method with the same name but different signatures. When…