---
spec: JVMS
title: "The Java Virtual Machine Specification"
edition: "Java SE 17 Edition"
java_version: 17
chapter: "Chapter 6. The Java Virtual Machine Instruction Set"
section: "6.5.iand"
heading: "iand"
parent: "6.5. Instructions"
source: https://docs.oracle.com/javase/specs/jvms/se17/html/jvms-6.html#jvms-6.5.iand
id: "6.5.iand"
url: https://jvm.obfuscated.software/jvms/se17/6.5.iand.html
raw: https://jvm.obfuscated.software/jvms/se17/6.5.iand.md
---

# iand

## Operation

Boolean AND `int`

## Format

```
iand
```

## Forms

*iand* = 126 (0x7e)

## Operand Stack

..., *value1*, *value2* →

..., *result*

## Description

Both *value1* and *value2* must be of type `int`. They are popped from the operand stack. An `int` *result* is calculated by taking the bitwise AND (conjunction) of *value1* and *value2*. The *result* is pushed onto the operand stack.
