1

What will be the output of?

int a=9;
if(a==5)
    System.out.print("a is five\t");
else
    System.out.print("a is not five\t");
System.out.print("Value of a is "+a);

 

  • a is not five Value of a is 9

  • a is not five Value of a is 5

  • a is five Value of a is 9

  • a is five Value of a is 5