29. What is the result when you compile and run the following code?
int a = 0, b = 6, c = 10;
if (a > 5) {
if ( b < 5 ) {
System.out.println("Frist");
}s
else {
System.out.println("Second");
}
}
else if (c > 5) {
System.out.println("Third");
}
else {
System.out.println("Fourth");
}
[a] Nothing is printed
[b] First is printed
[c] Second is printed
[d] Third is printed
[e] Fourth is printed
Answer
[d] Third is printed |