Nagarro Java Interview Questions & Answers

Поділитися
Вставка
  • Опубліковано 7 гру 2021
  • This video contains Java, Springboot, Microservices, Kafka interview questions and answers.
    Accenture 1st Round Interview: • IBM Java Interview Que...
    Accenture 2nd Round Interview: • Accenture | Round 2 | ...
    Brillio 1st Round Interview: • Brillio | Round 1 | Ja...
    Brillio 3rd Round Interview: • Brillio | Round 3 | Ja...
    CGI Interview: • CGI Java Interview Que...
    IBM Interview: • IBM Java Interview Que...
    Concentrix Interview: • Concentrix (PKGlobal) ...
    Wipro 1st Round Interview: • Wipro Java Interview Q...
    Wipro 2nd Round Interview: • Wipro | Round 2 | Java...
    Facebook: / javatechlead
    Instagram: / javatechlead
    Twitter: / javatechlead
    Mail: javatechlead123@gmail.com
    #java #springboot #microservices #java8 #elasticsearch #kafka #spring #javaInterviewQuestions​ #JavaInterviewQuestionsandAnswers​​​​​​ #JavaInterview​​​ #CoreJavaInterviewQuestions​​​ #JavaInterviewQuestionsandAnswersForExperienced​​​
  • Наука та технологія

КОМЕНТАРІ • 27

  • @gemphu1234
    @gemphu1234 5 місяців тому

    Thanks to interviewer for spending lot of time entertaining the guy.

  • @Ravikumar-gj6qw
    @Ravikumar-gj6qw 2 роки тому

    Tq bro

  • @Proman.Offbeat.Traveller
    @Proman.Offbeat.Traveller Рік тому

    Nyc

  • @kanekaab
    @kanekaab 5 місяців тому

    Why interviewer was confused for DS inside bucket? Strange 😊

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

    I didn't get the very 1st question filter employee list based on salary, if possible can you please help with question and answer...Thank you.!

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

      package com.demo;
      import java.util.HashMap;
      import java.util.List;
      import java.util.stream.Collectors;
      public class Demo {
      public static void main(String[] args) {
      HashMap empMap = new HashMap();
      empMap.put("Raju", new Employee("Raju", "Java", 1000));
      empMap.put("Kiran", new Employee("Kiran", "BI", 2000));
      empMap.put("Suman", new Employee("Suman", "C#", 5000));
      empMap.put("Ramu", new Employee("Ramu", ".Net", 10000));
      System.out.println(getEmployees(empMap, 3000));
      }
      public static List getEmployees(HashMap empMap, int salary){
      return empMap.entrySet().stream().filter(e->e.getValue().getSalary()>salary).map(e->e.getValue()).collect(Collectors.toList());
      }
      }
      class Employee{
      private String name;
      private String dept;
      private int salary;
      public Employee(String name, String dept, int salary) {
      super();
      this.name = name;
      this.dept = dept;
      this.salary = salary;
      }
      public String getName() {
      return name;
      }
      public void setName(String name) {
      this.name = name;
      }
      public String getDept() {
      return dept;
      }
      public void setDept(String dept) {
      this.dept = dept;
      }
      public int getSalary() {
      return salary;
      }
      public void setSalary(int salary) {
      this.salary = salary;
      }
      @Override
      public String toString() {
      return "Employee [name=" + name + ", dept=" + dept + ", salary=" + salary + "]";
      }
      }

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

      Lp
      L
      L
      Llllop ll pls p0l
      L
      L

    • @javainterview5096
      @javainterview5096 Рік тому

      @@JavaTechLead empMap.values().stream().filter(e -> e.getSalary() > salary).collect(Collectors.toList());

    • @vinitjordan
      @vinitjordan Рік тому

      @@JavaTechLead great one and I'm having a question so there is no usage of key mention in the question so can't we directly create a stream of values which reduce the use of map function in the stream pipeline.

    • @diamondrock4945
      @diamondrock4945 Рік тому

      private static List returnEmp(HashMap map) {
      List list = new ArrayList();
      for(Map.Entry newMap : map.entrySet() ){
      if(newMap.getValue().salary>9000){
      list.add(newMap.getValue());
      }
      }
      return list;
      }

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

    were thr DS based questions in Nagarrow ?

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

    how many rounds bro?

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

    How many interviews you have attended🤔

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

      I am coming up with another video on interviews attended 👍

  • @shivania.t141
    @shivania.t141 Рік тому

    You cleared?

  • @ziakhan-tk7rk
    @ziakhan-tk7rk 2 роки тому

    Got selected in Nagarro??

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

      Yes

    • @go1d
      @go1d 10 місяців тому

      Congratulations @JavaTechLead

  • @VijayKumar-sv3zd
    @VijayKumar-sv3zd 2 роки тому +1

    Ans to first question : empMap.entrySet().stream().filter(e->e.getSalary()>20000).map(e->e.getValue()).collect(Collectors.toList());

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

      Correct one would be as below.
      empMap.entrySet().stream().filter(e -> e.getValue().getSalary() > 20000).map(e -> e.getValue()).collect(Collectors.toList());

    • @veerendrakumarmeka3181
      @veerendrakumarmeka3181 Рік тому

      Can we use keyset()

    • @TechPhantomTalkie
      @TechPhantomTalkie Рік тому

      @@veerendrakumarmeka3181 using keySet() here will allow to stream and process Keys only...So, we won't get the desired results.

    • @javainterview5096
      @javainterview5096 Рік тому +1

      empMap.values().stream().filter(e -> e.getSalary() > 20000).collect(Collectors.toList());