Press "Enter" to skip to content

DevCubicle

Java ArrayBlockingQueue peek() Method

The peek() method of ArrayBlockingQueue returns the head element of the queue. It retrieves but does not remove the element. It returns null if the…

Java ArrayBlockingQueue put() Method

The put() method of ArrayBlockingQueue class appends the specified element at the tail of the queue if the queue is not full. If the queue…

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…