Тесты
Язык сайта: Русский
Українська
English
Русский
Тесты по программированию
Вход
Регистрация
Тесты по программированию
Теория
сниппеты
Статьи
Главная
Android
Цены
FAQ
История Cosmo
Правила и условия сервиса
Политика конфиденциальности
Политика в отношении файлов cookie
Обратная Связь
methods
:
Язык контента: English
Русский
Which statements are true about parameter transfer in Java (choose all acceptable variants)
methods
What will be the result of compilation and execution of the following code? import java.util.*; public class Test { void a1(Object... i){ System.out.println("[Object... i]"); } void a1(Integer... i){ System.out.println("[Integer... i]");; } public static void main(String... args){ a1(new Integer[19]); } }
methods
What will the following program write to the console? public class StringTest { public static void main(String[] arg){ test(new String[] { null }); } static void test(Object[] o){ System.out.print(1); } static void test(String o){ System.out.print(2); } static void test(String...o){ System.out.print(3); } static void test(Object...o){ System.out.print(4); } }
methods
← Предыдущая
1
2
Следующая →
Зарегистрируйся сейчас
или
Подпишись на будущие тесты