50+Collection Based Objective Question
1. What will be the output of the following code? java import java.util.*; public class Test { public static void main(String[] args) { List<String> list = Arrays.asList(“one”, “two”, “three”); list.forEach(System.out::println); } } a) one two threeb) three two onec) one twod) Compilation Error 2. What will be the output of the … Read more