Тести
Мова сайту: Українська
Українська
English
Русский
Тести з програмування
Вхід
Реєстрація
Тести з програмування
Теорія
Сніпети
Статті
Головна
Android
Ціни
FAQ
Історія Cosmo
Правила та умови сервісу
Політика конфіденційності
Політика щодо файлів cookie
Зворотній Зв’язок
label
:
Мова контенту: 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
← Попередня
1
Наступна →
Зареєструйся Зараз
або
Підпишись на майбутні тести