Skip to content
Reference > Methods

bitwiseXor(a,b)

Definition

Number bitwiseXor(Number a, Number b)

Description

Returns the bitwise XOR of two numbers.

Parameter Definition

Name Type Description
a Number param1
b Number param2

Examples

1
2
3
Integer r1 = bitwiseXor(5,8); // r1 == 13
Integer r2 = bitwiseXor(13,22); // r2 == 27
Object r3 = bitwiseXor(null,17); // r3 == null