LTI MIndtree interview question
Explain your project What is the value of a and b int a, integer b will below code work? a=b will below code work?If yes what would be the output Boolean a = new Boolean("Name") Write java 8 program to return unique elements only //input = 1, 2, 2, 3, 4, 4 //Output: 1 2 3 4 List<Integer> num = Arrays.asList( 1, 2, 2, 3, 4, 4); unique = num.stream().distinct().collect(Collectors.toList()); Write java 8 program to return list of string with same length input : ("a", "bb", "ccc", "dd") Output: {1=[a], 2=[bb, dd], 3=[ccc]} List<String> words = Arrays.asList("a", "bb", "ccc", "dd"); Map<Integer, List<String>> groupByLength = words.stream().collect(Collectors.groupingBy(String::length)); Write sql query to find employe recordswhoes salary is maximum select * from Employee where sal = ( select max(sal) from Employee); Write sql query to update the salary whoes name is jaya up...