What is the Output of this Program?

    big_loop:
    for (int i = 0; i < 3; i++) {
        try {
            for (int j = 0; j < 3; j++) {
                if (i == j) {
                    continue;
                } else if (i > j) {
                    continue big_loop;
                }
                System.out.print("A ");
            }
        } finally {
            System.out.print("B ");
        }
        System.out.print("C ");
    }

Answer: A A B C B B

Comments

huahh, baru tau gw Java bisa

huahh, baru tau gw Java bisa pake label gitu, jadi inget the oldies basic :P

Masih jaman yah spaghetti

Masih jaman yah spaghetti code? :P

finally i know what finally

finally i know what finally does

empat kali salah nulis captcha

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.