Java BigInteger equals() methodThe equals() methodof Java BigInteger class is used to compare this BigInteger with the specified Object for equality.This method overrides equals in class Object. Syntax:Parameter:x ? Object to which this BigInteger is to be compared. Returns:This method returnstrue if and only if the specified Object is a BigInteger whose value is numerically equal to this BigInteger. ExampleTest it NowOutput: 111 equals BigInteger111 istrue 111 equals object value 111 isfalse 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