Grokking Java Basics
Vote

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");
}
Click an option to answer

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content