Wipro Java 8 coding questions with answers | Java 8 tricky Interview Questions |

Поділитися
Вставка
  • Опубліковано 2 жов 2024
  • this video contains Java 8 Coding Questions and answers that were asked as part of wipro interview.
    Wipro Interview Experience : • wipro java interview q...
    One of the best book for Interview Questions
    Top 1000 Java Interview Questions & Answers: Includes Spring, Hibernate, Microservices, GIT, Maven, JSP, AWS, Cloud Computing @ amzn.to/32zFihe
    Best Laptops : amzn.to/33rBT4A
    Best Software's : amzn.to/3h9TTbw
    📌 Do Subscribe for all Updates.
    Telegram : Drunken Engineer
    t.me/DrunkenEn...
    You can follow us on Facebook :
    / drunkenengineer8
    Feel free share your Interview Experience with us @ funnytechiees@gmail.com
    #java8 #codingquestions#programmingquestions #interviewquestions #programming #wipro #interviewquestions #java #coding #realtime #questionsandanswers #technical #programming #solutions

КОМЕНТАРІ • 19

  • @ashokchowdary7784
    @ashokchowdary7784 2 роки тому +1

    Could you please share code.

    • @DrunkenEngineer
      @DrunkenEngineer  2 роки тому +2

      //program to print Max/Min employee salary from the given collection
      Optional higestEmployee = employeeList.stream()
      .collect(Collectors.maxBy(Comparator.
      comparingDouble(Employee::getSalary)));
      System.out.println(higestEmployee);

      Optional lowestEmployee = employeeList.stream()
      .collect(Collectors.minBy(Comparator.
      comparingDouble(Employee::getSalary)));
      System.out.println(lowestEmployee);
      System.out.println("=============================");
      //program to print the max salary of an employee from each department
      Map output = employeeList.stream()
      .collect(Collectors.groupingBy(Employee::getDepartment,
      Collectors.reducing(BinaryOperator.maxBy(Comparator.
      comparing(Employee::getSalary)))));
      output.forEach((key,value)-> System.out.println(key + value));
      System.out.println("=============================");
      //program to print active and inactive employees in the given collection
      Map activeInactiveCount = employeeList.stream()
      .collect(Collectors.
      groupingBy(Employee::getActive,Collectors.counting()));
      activeInactiveCount.forEach((key,value)-> System.out.println(key + value));
      //program to print employee details working in each department
      System.out.println("=============================");
      Map empDept = employeeList.stream()
      .collect(Collectors.groupingBy(Employee::getDepartment));
      empDept.forEach((key,value)-> System.out.println(key + value));
      //program to print employees count working in each department
      System.out.println("=============================");
      Map empDeptCOunt = employeeList.stream()
      .collect(Collectors.groupingBy(Employee::getDepartment,Collectors.counting()));
      empDeptCOunt.forEach((key,value)-> System.out.println(key + value));

    • @mohammedajazquadri7869
      @mohammedajazquadri7869 2 роки тому

      @@DrunkenEngineer program to print second maximum salary of employee

  • @kaushalgupta1053
    @kaushalgupta1053 2 роки тому +4

    Thanks for this video but the voice sound is very slow in it.

    • @DrunkenEngineer
      @DrunkenEngineer  2 роки тому +1

      Thanks for the feedback Kaushal, will work on it.

  • @SaiTeja-ym2er
    @SaiTeja-ym2er 2 роки тому +2

    thanks team. Wonderful job.

  • @onlinenaman
    @onlinenaman 2 роки тому +1

    Waiting for more experienced interviews, like 8+ years. This is the most useful UA-cam channel.

  • @AvinashJ21
    @AvinashJ21 2 роки тому +6

    Thank you very much !!!

    • @DrunkenEngineer
      @DrunkenEngineer  2 роки тому +2

      Hope it is helpful😊

    • @AvinashJ21
      @AvinashJ21 2 роки тому +2

      @@DrunkenEngineer It is I totally appreciate yours and teams hard work and investing amount of time for creating useful content for viewers like me..I don't how to thank you all

  • @josephprabhuubaharam
    @josephprabhuubaharam 2 місяці тому

    Below also works
    Employee e5 =list.stream().max(Comparator.comparing( (Employee e) ->e.getSalary())).get();;

  • @maheverse7223
    @maheverse7223 2 роки тому +1

    what if more than 2 employee with same highest salary??

  • @nikhileshyoutube4924
    @nikhileshyoutube4924 2 роки тому +2

    Thanks !!🔥

  • @lonewalker7193
    @lonewalker7193 2 роки тому +1

    Thanks for the information

  • @allaroundtheworldinshorts1499
    @allaroundtheworldinshorts1499 2 роки тому +1

    Bro.. I got a question, is it possible to get 25LPA hike? Which company wil gv tht much?
    I have 5.10 years experience as a java backend developer but current CTC is 7LPA..

    • @DrunkenEngineer
      @DrunkenEngineer  2 роки тому +1

      It is very much possible, if you have hands on experience on the latest technologies.

    • @Akash-si3el
      @Akash-si3el 2 роки тому +1

      @@DrunkenEngineer so java and spring boot is not latest technology for greater hike?

    • @DrunkenEngineer
      @DrunkenEngineer  2 роки тому

      90% of Java developers know Java and Springboot.
      Why will it make you pay higher package?

  • @eswarr7189
    @eswarr7189 2 роки тому

    empList.stream().collect(Collectors.partitionBy(e -> e.getActive() == 'isActive))): it returns map with active employelist and inactive employelist