What is the output of the given java code?
public class HelloWorld
{
public static
void main(String []args)
{
int i=1;
if(i) switch(i++)
// Line 1 { default : System.out.println("No Value");
case 0 : System.out.
println("i is 0");
case 1 : System.out.
println("i is 1");
case 2 : System.out.
println("i is 2");
}
}
Reveal answer
Fill a bubble to check yourself