Grokking Java Basics
0% completed
Quiz
Quiz
Question 1
What is the output of the following nested if...else statement?
int x = 15;
if (x > 10) {
if (x < 20) {
System.out.println("x is between 10 and 20");
} else {
System.out.println("x is 20 or more");
}
} else {
System.out.println("x is 10 or less");
}
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%