What is the output of the given java program?
public class HelloWorld
{
public static void main(String []args)
{
int i = (1048576>>8>>3>>8>>3) + + - + (1024<<8<<3>>8>>3);
switch(i) // Line 1
{
default : System.out.println("Good Bye");
case 1024 : System.out.println(1024<<8<<3>>8>>3);
case 512 : System.out.println(1024<<2>>3<<2);
case 1 : System.out.println(1024<<3<<8>>3>>3);
}
}
}
Reveal answer
Fill a bubble to check yourself