Basic If-Else Statement
What is printed as a result of executing the following code segment?
public class Main {
public static void main(String[] args) {
boolean flag = false;
if(flag) {
System.out.println("True");
} else {
System.out.println("False");
}
}
}
A
Runtime Error
B
True
C
False
D
No output
Question Leaderboard
Not enough data yet to show leaderboard.
APFIVE