Тести
Мова сайту: Українська
Українська
English
Русский
Тести з програмування
Вхід
Реєстрація
Тести з програмування
Теорія
Сніпети
Статті
Головна
Android
Ціни
FAQ
Історія Cosmo
Правила та умови сервісу
Політика конфіденційності
Політика щодо файлів cookie
Зворотній Зв’язок
reserved words
:
Мова контенту: English
Русский
What will be the result of the following program execution? public class Program { public static void main(String[] args) { int N = 5; int m[] = new int[N]; label: for (int i = 0; i < N; ++i) { m[i] = i * i; if (m[i] == 9) { System.out.print("9 "); goto label; } } } }
reserved words
Given the class: public class Clazz { public static void main(String[] args) { // input here } } which of the following definitions can be added to it so that it successfully compiles?
reserved words
How should the line 6 of the following code be modified so that the compilation error does not occur (select all that apply)? 1: class Class1 2: { 3: int total = 0; 4: public static void main( String[] args ) 5: { 6: doIt(); 7: } 8: void doIt() 9: { 10: for ( int i = 0; i < 5; i++ ) total += i; 11: System.out.println( total ); 12: } 13: }
reserved words
Which of the following variable declarations are allowed in Java?
reserved words
← Попередня
1
Наступна →
Зареєструйся Зараз
або
Підпишись на майбутні тести