Java BigInteger and() Method20 Mar 2025 | 2 min read The 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 1Output: Result is 1 Example 2Output: Result is -7 Example 3Output: esult is 5 Next TopicJava BigInteger |
We request you to subscribe our newsletter for upcoming updates.

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