Тести
Мова сайту: Українська
Українська
English
Русский
Тести з програмування
Вхід
Реєстрація
Тести з програмування
Теорія
Сніпети
Статті
Головна
Android
Ціни
FAQ
Історія Cosmo
Правила та умови сервісу
Політика конфіденційності
Політика щодо файлів cookie
Зворотній Зв’язок
arrays
:
Мова контенту: English
Русский
Which of the following lines will compile without errors?
arrays
Is it possible to dynamically modify the size of an array?
arrays
Select correct variable declarations.
arrays
What is the result of the following code execution? import java.util.Arrays; class Generic<T extends Number> { private T arr[] = {1, 2, 3, 4, 5}; public String toString(){ return Arrays.toString(arr); } } public class Test { public static void main(String [] args) { Generic<Double> obj = new Generic<Double>(); System.out.println(obj); } }
arrays
int[] x = new int[25] Which of statements below are true?
arrays
Given a two-dimensional array (matrix) int[][] arr = {{1,2,3}, {0,0,0}, {3,2,1}}; Which of the answer choices allow to iterate over all the elements of an array and display them on the screen by means of for-each statement?
arrays
What is the result of the following code execution? public class Test { public static void main(String[] args){ int[][] x = new int[2][5]; int[][] y = new int[2][5]; System.out.println(x[1][3]); System.arraycopy(x, 0, y, 0, x.length); x[1][3] = 55; System.out.println(y[1][3]); } }
arrays
What happens when System.arraycopy() is called with the same array being the src and dist parameter?
arrays
Should all the elements in Java arrays be of the same type?
arrays
What will be printed out to console after the following class is compiled and executed: public class A { public static void main(String[] args) { List<Integer> list = new ArrayList<Integer>(); list.add(1); list.add(0); Integer[] array = null; list.toArray(array); System.out.println(list.get(1)); } }
arrays
← Попередня
1
2
3
Наступна →
Зареєструйся Зараз
або
Підпишись на майбутні тести