LTI MIndtree interview question

  1. Explain your project
  2. What is the value of a and b 
    1.    int a, integer b
  3. will below code work?
    1. a=b
  4. will below code work?If yes what would be the output
    1. Boolean a = new Boolean("Name")
  5. Write java 8 program to return unique elements only
    1. //input = 1, 2, 2, 3, 4, 4
    2. //Output: 1 2 3 4

    1. List<Integer> num = Arrays.asList( 1, 2, 2, 3, 4, 4);
    2. unique = num.stream().distinct().collect(Collectors.toList());
  6. Write java 8 program to return list of string with same length
    1. input : ("a", "bb", "ccc", "dd")
    2. Output: {1=[a], 2=[bb, dd], 3=[ccc]}
    1. List<String> words = Arrays.asList("a", "bb", "ccc", "dd");
    2. Map<Integer, List<String>> groupByLength = words.stream().collect(Collectors.groupingBy(String::length));
  7. Write sql query to find employe recordswhoes salary is maximum
    1. select *
    2. from Employee
    3.  where sal = ( select max(sal) from Employee);
  8. Write sql query to update the salary whoes name is jaya
    1. update Employee 
    2. set sal = 30000
    3. where name = "jaya";
  9. Create a controller to get employe details whoes sal is maximum, using repo built in menthod and JPQL.
    1. @Service
    2. public class EmployeeService{

    3. @Autowired
    4. private EmployeeRepository empRepo;

    5. public List<Employee> getEmployeeWithMaxSal(){
    6. return  empRepo.findEmployeesWithMaxSal();
    7. }
    8. }
    9. @ Repository
    10. @Ouery("select e from 
    11. List<EMployee> emps = empRepo.findAll();
    12. return emps.stream().max(Comparator.co
  10. Write git command for pull a branch
    1.     git pull origin branch1
  11. WHat is service discovery?
  12. How you configure eureka in spring boot
  13. How do we get a value from .properties file, write code forvthe same
  14. Which  microservices you have used
  15. Explain Controller, service and repositorty lasyer annotation in brief
  16. how you deploye your application in gcp
  17. what it load balancer
https://www.youtube.com/watch?v=unNSUbZpi7c&ab_channel=GenZCareer
upper ss h

Comments

Popular posts from this blog

Intellect Interview Experience

Google

Accolite digital Interview experience