Quizzes
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
label
:
Content language: English
Русский
What is the result of the following program execution? public class Bar { public static void main(String args[]) { label: for (int i = 0; i < 5; ++i) { for (int j = 0; j < 5; ++j) { if (i > 2) break label; System.out.print(j); } System.out.print(" "); } } }
label
What will be the result of the following program execution? public class Abc { public static void main(String[] args) { p1: { p2: { p3: { System.out.print("p3.1 "); if (true) break p2; System.out.print("p3.2 "); } System.out.print("p2 "); } System.out.print("p1 "); } } }
label
← Prev
1
Next →
Sign Up Now
or
Subscribe for future quizzes