Java BigInteger hashCode() method

The hashCode() method of Java BigInteger class is used to compute the hash code for this BigInteger. This method overrides hashCode in class Object.

Syntax:

Parameter:

NA.

Returns:

This method returns the hash code for this BigInteger.

Exception:

NA

Example 1

Test it Now

Output:

Hash code of 123 is 123
Hash code of 1234567 is 1234567

Example 2

Test it Now

Output:

Hash code of 9234567879 is 644633349
Hash code of 12345678901 is -539222925

Next TopicJava BigInteger




Latest Courses