Can someone please let me know Output of the below program and how signed byte works
public class OppositeSigns
{
public static void main(String[] args)
{
// TODO Auto-generated method stub
byte a =-2;
byte b= -1;
opp(a,b);
}
static void opp(byte x,byte y)
{
byte z;
z= (byte)(x^y);
System.out.println(z);
}
}