Write a Java program to add two numbers without using any arithmetic operators

Source Code:

public class P25 {
public static void main(String[] args) {
int a = 5, b = 10;
while(b != 0) {
int carry = a & b;
a = a ^ b;
b = carry << 1;
}
System.out.println(a);
}
}

Output: