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
- update Employee
- set sal = 30000
- where name = "jaya";
- Create a controller to get employe details whoes sal is maximum, using repo built in menthod and JPQL.
- @Service
- public class EmployeeService{
- @Autowired
- private EmployeeRepository empRepo;
- public List<Employee> getEmployeeWithMaxSal(){
- return empRepo.findEmployeesWithMaxSal();
- }
- }
- @ Repository
- @Ouery("select e from
- List<EMployee> emps = empRepo.findAll();
- return emps.stream().max(Comparator.co
- Write git command for pull a branch
- git pull origin branch1
- WHat is service discovery?
- How you configure eureka in spring boot
- How do we get a value from .properties file, write code forvthe same
- Which microservices you have used
- Explain Controller, service and repositorty lasyer annotation in brief
- how you deploye your application in gcp
- what it load balancer
https://www.youtube.com/watch?v=unNSUbZpi7c&ab_channel=GenZCareer
upper ss h
Comments
Post a Comment