1

What will be the output of the following program?
class IntegerConversion{
public static void main(String args[]){
long L = 55;
int i = 44;
short s = 33;
byte b = 22;
i = (int) L;
s = (short) i;
b = (byte) s;
System.out.println(“L = ” + L);
System.out.println(“i = ” + i);
System.out.println(“s = ” + s);
System.out.println(“b = ” + b);
}
}

  • L = 55
    i = 44
    s = 33
    b = 22

  • L = 22
    i = 33
    s = 44
    b = 55

  • L = 55
    i = 55
    s = 55
    b = 55

  • Error