What is functional interface in Java 8 and what are three built-in examples? Java AssociateHard Try Now
What is the result of the following code? “`java int[] arr = {1, 2, 3}; int[] copy = arr; copy[0] = 99; System.out.println(arr[0]); “` Java AssociateHard Try Now
What is the purpose of the `Comparable` vs `Comparator` interface in Java? Java AssociateHard Try Now
What does the `Stream.collect(Collectors.groupingBy(…))` operation produce? Java AssociateHard Try Now
What is the difference between `ConcurrentHashMap` and `Collections.synchronizedMap()`? Java AssociateHard Try Now
What is the output of the following code? “`java Integer a = 127; Integer b = 127; Integer c = 128; Integer d = 128; System.out.println(a == b); System.out.println(c == d); “` Java AssociateHard Try Now
What is a Java Lambda expression and what interface type does it implement? Java AssociateMedium Try Now
What is the output of the following code? “`java List list = new ArrayList(); list.add(“A”); list.add(“B”); list.add(“C”); list.remove(1); System.out.println(list); “` Java AssociateMedium Try Now
What is the difference between a `checked` and `unchecked` exception in Java? Java AssociateMedium Try Now