Java BigInteger and() MethodThe and() method of Java BigInteger class returns a BigInteger whose value is (this & val). Syntax:Parameter:val- A value to be AND'ed with this BigInteger. Returns:This method returns a BigInteger object of value, this &val . Note:This method returns a negative BigInteger if and only if this and val are both negative.Example 1Test it NowOutput: Result is 1 Example 2Test it NowOutput: Result is -7 Example 3Test it NowOutput: esult is 5 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