Тесты
Язык сайта: Русский
Українська
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
Следующая →
Зарегистрируйся сейчас
или
Подпишись на будущие тесты