The
hashCode() method of
ConcurrentLinkedDeque in Java is used to get the hashCode value for this instance of the ConcurrentLinkedDeque. It returns an integer value which is the hashCode value for this instance of the ConcurrentLinkedDeque.
Syntax:
public int hashCode()
Parameters: This function has no parameters.
Return Value: The method returns an
integer value which is the hashCode value for this instance of the ConcurrentLinkedDeque.
Below programs illustrate the ConcurrentLinkedDeque.hashCode() method:
Program 1:
Output:
Linked Blocking Deque: [7855642, 35658786, 5278367, 74381793]
HashCode value: 2101973421
Program 2: