Menu
Question Index
...

What will be the output of the following program?

public class Condition {
    public static void main(String[] args) {
        int[] numbers = {01111, 02222, 03333, 04444, 05555};
        for (int number : numbers) {
            if (number == 3333) {
                continue;
            }
            System.out.print(number + ",");
        }
    }
}


1111,2222,4444,5555,
1111,2222,3333,4444,5555,
01111,02222,03333,04444,05555,
Some other output
Compilation Error or Runtime Error

Doubts

Problems

Topic: Unknown

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App