Java BigInteger not() MethodThe not() method of Java BigInteger class is used to find the Bitwise NOT of a BigInteger. This method returns a BigInteger whose value is ( ~this). Syntax:Parameter:NA Returns:This method returns ( ~this). Exception:NA Note: This method returns a negative value if and only if this BigInteger is positive.Example 1Test it NowOutput: NOT operation on 5 gives -6 Example 2Test it NowOutput: NOT operation on -5 gives 4 Example 3Test it NowOutput: NOT operation on 15 gives -16 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