Java BigInteger hashCode() methodThe 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 1Test it NowOutput: Hash code of 123 is 123 Hash code of 1234567 is 1234567 Example 2Test it NowOutput: Hash code of 9234567879 is 644633349 Hash code of 12345678901 is -539222925 Next TopicJava BigInteger |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India