
Pytanie rekrutacyjne #java #programowanie
var list1 = Arrays.asList(1,2,3);
System.out.println(list1.contains(null)); // OK
var list2 = List.of(1,2,3);
System.out.println(list2.contains(null)); // NullPointerException- Najlepsze
- Wszystkie komentarze







Integer a = -128, b = -128, c = 128, d = 128;System.out.println(a == b); //?
System.out.println(c == d); //?