What is O/P
public class Main
{
static boolean check;
public static void main(String...s) {
int i;
if (check == true) {
i = 1;
} else {
i = 2;
}
if (i == 2) {
i = i + 2;
}else {
i = i + 4;
}
System.out.println(i);
}
}
Download the Study24x7 App, so you can connect and collaborate.