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

# lxor

## Operation

Boolean XOR `long`

## Format

```
lxor
```

## Forms

*lxor* = 131 (0x83)

## Operand Stack

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

..., *result*

## Description

Both *value1* and *value2* must be of type `long`. They are popped from the operand stack. A `long` *result* is calculated by taking the bitwise exclusive OR of *value1* and *value2*. The *result* is pushed onto the operand stack.
