Java 8 Stream API and String | Capgemini Mock L1 Coding Interview

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024

ความคิดเห็น • 129

  • @venkatarr
    @venkatarr 2 ปีที่แล้ว +3

    Good one. I work for a German defence project and got opportunity to sharpen my Java skills.

  • @mankindsangel9351
    @mankindsangel9351 2 ปีที่แล้ว +14

    Piece of cake, even a fresher could have cleared it

    • @noneofyourbusiness919
      @noneofyourbusiness919 2 ปีที่แล้ว

      No i can't 🤧, btw what is this map which he use ?

    • @sasidharvivek419
      @sasidharvivek419 2 ปีที่แล้ว +1

      @@noneofyourbusiness919 this map is different. It's just for mapping

    • @goodgrandpa
      @goodgrandpa 2 ปีที่แล้ว +2

      @@noneofyourbusiness919 This is not Map , this is Stream.map().

  • @alphalearninghub5237
    @alphalearninghub5237 2 ปีที่แล้ว +12

    I am so happy to have found your channel! This video was exactly what I needed today. You have a wonderful, calming way about your teaching. Thank you for taking the time to make these videos..........

  • @javascriptduniya1201
    @javascriptduniya1201 2 ปีที่แล้ว +6

    Great to see candidate is so excited for Capgemini..my favourite company 👍

  • @proxy5061
    @proxy5061 2 ปีที่แล้ว +10

    I am 3 months experience, I dono about streams, but last parts were easy enuf

    • @goodgrandpa
      @goodgrandpa 2 ปีที่แล้ว

      Now you are six months, have you handled streams? They are such a strong tool.

  • @harishreddy2456
    @harishreddy2456 2 ปีที่แล้ว +45

    in real interviews.. they will ask take linked list keep in mirror and cut one node in it .. find out the shortest path between two nodes .. lol :) .. it was terribles . For me they asked to me write satellite code

    • @rohithkoteval1785
      @rohithkoteval1785 2 ปีที่แล้ว +11

      Bro you are not into capgemini interview 😂 If you are into product based/startup they will screw with DS ALGO

    • @PraveenKumar-uj2ih
      @PraveenKumar-uj2ih 2 ปีที่แล้ว

      @@rohithkoteval1785 Exactly

    • @p_varma17
      @p_varma17 2 ปีที่แล้ว

      🥶🥶

  • @santanumukherjee4108
    @santanumukherjee4108 2 ปีที่แล้ว

    Easy peasy, it should be for a fresher.

  • @carlacosta3903
    @carlacosta3903 2 ปีที่แล้ว +1

    you saved me a lot of time looking for a working crack

  • @enigma7080
    @enigma7080 2 ปีที่แล้ว +9

    This makes sense in sql. In java he could have asked some logical question.

  • @ankitshukla5800
    @ankitshukla5800 2 ปีที่แล้ว +1

    Excellent

  • @HarryHoudiny
    @HarryHoudiny ปีที่แล้ว +1

    First of all I would prefer not violate OCP.
    We have to add interface or abstract class Employee and declare method increaseSalary(). Than we have to put increasing salary logic there. With that we can iterate over list of employees and call increaseSalary() without any logic in map lambda that actually violates OCP.
    Second comment is not to use anythng except BigInteger for money. You can see in current solution have errors are accumulated.

    • @MandarSant123
      @MandarSant123 3 หลายเดือนก่อน

      What is ocp ?

  • @nikhileshyoutube4924
    @nikhileshyoutube4924 2 ปีที่แล้ว +9

    Excellent bro confidence level 😉

  • @vasanth_here
    @vasanth_here 2 ปีที่แล้ว

    Confidence to max💯

  • @raghavendrac1053
    @raghavendrac1053 2 ปีที่แล้ว +1

    NYC keep uploading more vedios on Java 8 interview coding questions

  • @Saikumar_Miryala
    @Saikumar_Miryala 2 ปีที่แล้ว +2

    Strings questions are very essy even fresher can answer

    • @cloudtech5260
      @cloudtech5260  2 ปีที่แล้ว

      Thanks Sai for the review. 👍

  • @prakashsingh-hs3hn
    @prakashsingh-hs3hn 2 ปีที่แล้ว +13

    I could have used filter() method to filter the Age and then Map() to do the calculations that would be more Java 8

    • @kavingct
      @kavingct 2 ปีที่แล้ว +3

      That would make the collected list have only employees with age > 25 but the desired output is to have all employees but increment salary for particular employees.

    • @prakashsingh-hs3hn
      @prakashsingh-hs3hn 2 ปีที่แล้ว

      @@kavingct in that case I can use filter inside map I guess

    • @thatsfreaky9603
      @thatsfreaky9603 2 ปีที่แล้ว

      No need of filter. Simplicity is the key

    • @florin-alexandrustanciu5643
      @florin-alexandrustanciu5643 2 ปีที่แล้ว

      @@kavingct that is because he collected the stream into another list, so he didn't really increase the salaries he created new employees .

    • @florin-alexandrustanciu5643
      @florin-alexandrustanciu5643 2 ปีที่แล้ว +3

      @@thatsfreaky9603 the simplest way would be to use for each, also this way you would actually increase the salaries of existing employees not create another list of employees

  • @priyakushwaha9865
    @priyakushwaha9865 2 ปีที่แล้ว

    Very nice video

  • @tecres9379
    @tecres9379 2 ปีที่แล้ว +5

    That is like fresher interview

  • @Azhagusuryaa2696
    @Azhagusuryaa2696 ปีที่แล้ว

    Use filter 7:10 instead of if condition inside map

  • @gopalkannan4934
    @gopalkannan4934 2 ปีที่แล้ว

    Thank you so much

  • @sunetramukherjee1805
    @sunetramukherjee1805 2 ปีที่แล้ว +2

    Can you please tell me for 2 years of experienced candidates what are the selection rounds generally happens from the Scratch after application shortlisting ....

    • @cloudtech5260
      @cloudtech5260  2 ปีที่แล้ว

      2 Technical Rounds followed by 1 HR Discussion

    • @sunetramukherjee1805
      @sunetramukherjee1805 2 ปีที่แล้ว

      @@cloudtech5260 is there any written test or any coding test?

    • @mr.ashwani94
      @mr.ashwani94 2 ปีที่แล้ว

      @@sunetramukherjee1805 it quite be possible but not for every time.

  • @rohatgianu
    @rohatgianu 4 หลายเดือนก่อน

    why did not you use filter first for age then map instead of if condition

  • @bestAnkitAgarwal
    @bestAnkitAgarwal 2 ปีที่แล้ว +2

    Solution provided for employee is not an ideal solution.
    1. Filter should be used for the age comparison
    2. And new employee object should have been created for the updated salary. Since Immutability should be maintained

    • @raghwendrapratap2115
      @raghwendrapratap2115 2 ปีที่แล้ว

      2. Is wrong reason we are raising the salary of same employee.
      Creating new employee with same details results duplicacy and also in real time scenario the Employee ID will be disturbed which might not be good if this employee having dependencies.
      Rest yes point 1 is valid.

  • @abhinavpandey3356
    @abhinavpandey3356 2 ปีที่แล้ว +6

    It's kind of very easy round it should be for freshers.

    • @cloudtech5260
      @cloudtech5260  2 ปีที่แล้ว +3

      Thanks Abhinav, the fresher who knows streams are hired first. 👍👍

  • @anirudhharaje7192
    @anirudhharaje7192 2 ปีที่แล้ว +1

    Perfect💯

  • @mahendranr8934
    @mahendranr8934 2 ปีที่แล้ว

    Useful video

  • @gowthamraina1628
    @gowthamraina1628 2 ปีที่แล้ว +2

    How would you get clear knowledge about java ..how could u learn and crack coding rounds

    • @vikasverma3555
      @vikasverma3555 2 ปีที่แล้ว

      Make practice

    • @cloudtech5260
      @cloudtech5260  2 ปีที่แล้ว +1

      Learn small concepts and write programs around it. Best of luck 👍

  • @animeshrose
    @animeshrose 2 ปีที่แล้ว +6

    That was easy. What is the salary PKG? I guess it will be less.

    • @rexsam3134
      @rexsam3134 2 ปีที่แล้ว +1

      It's a mock interview. These guys talk between friends. Create a audio and upload it. It's better that they just upload the questions and discuss in short if they know the answers. Others can google for the answers

    • @Izhar404
      @Izhar404 2 ปีที่แล้ว

      They are in the same room, you can hear double voices 😂

  • @mayurlaniya5049
    @mayurlaniya5049 2 ปีที่แล้ว +1

    Quite easy

  • @Ellenki_007
    @Ellenki_007 2 ปีที่แล้ว +2

    Take one and more interview in hindi

  • @20M_Target_1.0
    @20M_Target_1.0 2 ปีที่แล้ว +1

    I have no experience but these questions you can ask me in the sleep as well 😜

    • @jonsantos6056
      @jonsantos6056 2 ปีที่แล้ว

      So that you will keep on sleeping right

  • @Pawan-fd6wl
    @Pawan-fd6wl 2 ปีที่แล้ว

    But really very helpful

  • @yashwanth8350
    @yashwanth8350 2 ปีที่แล้ว +2

    What is ur current package brother for this interview?

    • @cloudtech5260
      @cloudtech5260  2 ปีที่แล้ว +2

      The student who gave this interview got 9.7L.

  • @80_kunaltilekar30
    @80_kunaltilekar30 2 ปีที่แล้ว +10

    how many years of experience this guy have ? or was he fresher?
    btw wonderful video, will surly help!!

  • @Ordinaryperson153
    @Ordinaryperson153 2 ปีที่แล้ว

    What no is 7:11 1.10?

  • @ch.__Sr
    @ch.__Sr 2 ปีที่แล้ว

    Screen not clear visible bro....

  • @zuyyx4565
    @zuyyx4565 2 ปีที่แล้ว +1

    @Makemythings Byme Telugu
    👉I got Loi in April 10th...
    I accepted it......
    👉 April 27 th i got DOJ on May 5th,i send IRF, certificate.....
    BUT
    There send a mail on
    👉 April 29th that ur DOJ was postponed........
    I upload all my documents clearly...
    When will I get another DOJ Mail ❓
    Any requestion will happened ❓

    • @PoonamGupta-sr5qg
      @PoonamGupta-sr5qg 2 ปีที่แล้ว

      Don't worry, they will send just be in contact with HR

  • @kirannani4044
    @kirannani4044 2 ปีที่แล้ว

    I think interviewer is also fresher..

  • @sunnyvachheta2790
    @sunnyvachheta2790 2 ปีที่แล้ว

    Can you suggest projects to add in resume for Java developer role, Please?

    • @cloudtech5260
      @cloudtech5260  2 ปีที่แล้ว +1

      Highest Qualification bro, pls?

    • @abhishekbhawankar2971
      @abhishekbhawankar2971 2 ปีที่แล้ว

      ​@@cloudtech5260 My qualifications is MCA

    • @ajaysarkate6624
      @ajaysarkate6624 2 ปีที่แล้ว

      @@cloudtech5260 any suggestion for non b tech, self taught developers? 🙂🙂

    • @shande471
      @shande471 2 ปีที่แล้ว

      Yes help us in projects please bro

    • @SAM-uy2ek
      @SAM-uy2ek 2 ปีที่แล้ว

      @@abhishekbhawankar2971 have you completed your mca?

  • @deepakks7678
    @deepakks7678 2 ปีที่แล้ว

    Are there going to be any interview for fresher capg analyst role based on ADAPT training before aloting to project?

    • @cloudtech5260
      @cloudtech5260  2 ปีที่แล้ว

      Yes there will be one interview before project allocation.

  • @parvaizsajad8200
    @parvaizsajad8200 2 ปีที่แล้ว

    He could have used filter and then map in first question. One liner code.

    • @gyvsr
      @gyvsr 2 ปีที่แล้ว +1

      Yes. I too agree with you. Even, performance wise, filter and then map way would increase performance i believe.

    • @cloudtech5260
      @cloudtech5260  2 ปีที่แล้ว

      Thanks for the thoughts guys. You can ho for filter when you want only incremented values in the output, if the requirement is to get all values in the output then you can go for map with condition. Happy learning 👍

    • @gyvsr
      @gyvsr 2 ปีที่แล้ว

      @@cloudtech5260 But, the requirement here is, we need to apply the increment only for the age > 28 right. So, filter the input to get the values with that criteria and apply the increment logic.
      We are talking about input filtering, not the output filtering.

    • @kavingct
      @kavingct 2 ปีที่แล้ว

      @@gyvsr when you filter a stream the output list has only the filtered entries which is not the desired output in this scenario.

  • @abhay6124
    @abhay6124 2 ปีที่แล้ว

    So easy question kaun poochta hai Bhai

  • @sauravpatil5711
    @sauravpatil5711 ปีที่แล้ว

    Seriously 3.5 y?
    Cheers for me then 😁 solved this questions easily having 0 y of exp

  • @RealSlimShady-um6gf
    @RealSlimShady-um6gf ปีที่แล้ว

    Listening

  • @girirajsinghrathore1749
    @girirajsinghrathore1749 2 ปีที่แล้ว +1

    How much they offered

  • @rohankavathekar
    @rohankavathekar 2 ปีที่แล้ว +1

    That was helpful! was it the position for 1-3 years?

    • @cloudtech5260
      @cloudtech5260  2 ปีที่แล้ว +2

      Thanks Rohan. Yes it was for 3 years.

  • @bka9705
    @bka9705 2 ปีที่แล้ว

    Next level 2 interview link?

    • @cloudtech5260
      @cloudtech5260  2 ปีที่แล้ว

      We don't have questions for 2nd round yet. We will try to find out the questions from the 2nd round.

  • @abhisheksinghnirwan
    @abhisheksinghnirwan 2 ปีที่แล้ว

    humne bhh MCA kiya tha batao ajj berojgar hai 😅

    • @SAM-uy2ek
      @SAM-uy2ek 2 ปีที่แล้ว

      Kha se bhaiya?

    • @SAM-uy2ek
      @SAM-uy2ek 2 ปีที่แล้ว

      Mca nhi krni chahiye kya?
      Go for skills development

    • @cloudtech5260
      @cloudtech5260  2 ปีที่แล้ว +1

      Learn any programming language and you will get the job. Best of luck 👍

    • @abhisheksinghnirwan
      @abhisheksinghnirwan 2 ปีที่แล้ว

      @@SAM-uy2ek NAAC "A" graded University thi GLA university. After all there is a huge difference between theory and practical. Ajj college ki conditions ye h bas placement pe focus rhta h firh bacha kuch sikh paye ya na paaye

  • @rockstarrr4384
    @rockstarrr4384 2 ปีที่แล้ว

    Obviously both of u sir dont have any coding experience.

  • @Kaeton_vlog
    @Kaeton_vlog 2 ปีที่แล้ว

    Are you fresher or u have experience?

  • @krushnnabaviskar2170
    @krushnnabaviskar2170 2 ปีที่แล้ว

    Can u give hint that how much pkg he will get

    • @cloudtech5260
      @cloudtech5260  2 ปีที่แล้ว +1

      He got 9.7 LPA

    • @krushnnabaviskar2170
      @krushnnabaviskar2170 2 ปีที่แล้ว +1

      @@cloudtech5260 that's too less ,
      For person who is having 2+ yr of experience

  • @anandreddy.k9679
    @anandreddy.k9679 9 หลายเดือนก่อน

    the same interviewer and the same candidate

  • @killerdroid99
    @killerdroid99 2 ปีที่แล้ว

    man so much boilerplate java is messed up actually

  • @atiqurrahman7914
    @atiqurrahman7914 2 ปีที่แล้ว +1

    Do they allow editor like eclipse..

    • @cloudtech5260
      @cloudtech5260  2 ปีที่แล้ว +1

      Yes. Eclipse or intellij are allowed. Some project interviews don't allow editors but still you can use online editors and solve the problem.

  • @liontalha7383
    @liontalha7383 2 ปีที่แล้ว

    kya bro itna easy bhi Interview hota hai kya? hamare mei toh tree graph wale problem puchhte hai.....😢😢😢😢

    • @cloudtech5260
      @cloudtech5260  2 ปีที่แล้ว +1

      haha. which company bro?

    • @liontalha7383
      @liontalha7383 2 ปีที่แล้ว

      @@cloudtech5260 juspay, Amazon, NCS etc

    • @cloudtech5260
      @cloudtech5260  2 ปีที่แล้ว

      Thanks. Send me the question if you have it. Solve karte hain videos me 🙂

    • @liontalha7383
      @liontalha7383 2 ปีที่แล้ว

      @@cloudtech5260 send me your mail I'll send you the questions

    • @cloudtech5260
      @cloudtech5260  2 ปีที่แล้ว

      jobreadytrainings22@gmail.com

  • @jacknjill8096
    @jacknjill8096 2 ปีที่แล้ว +4

    In reality Tier-2 or Tier-3 companies never evaluate coding skills, they just checked one's fundamental and conceptual knowledge on the skillet mentioned in cv.
    Tier-1 companies like MAANG, Oracle, Wallmart etc have their own dedicated round of coding in which they are looking for a person who is an expert in DSA/Algo.

  • @SHIVAAY944
    @SHIVAAY944 2 หลายเดือนก่อน

    Online compiler or notepad me code karwate h bhai😢😢😢

    • @cloudtech5260
      @cloudtech5260  2 หลายเดือนก่อน

      yes I saw it in many companies!!!

  • @yatendra__singh
    @yatendra__singh 2 ปีที่แล้ว

    What will be the next round after this ,could you pls tell ..

    • @cloudtech5260
      @cloudtech5260  2 ปีที่แล้ว +1

      Next round will be L2, where a senior developer will conduct the interview. He will assess the the understanding about java, spring boot and microservices along with a bit of design pattern knowledge.

    • @proxy5061
      @proxy5061 2 ปีที่แล้ว

      @@cloudtech5260 no coding? If no coding I am strong in understanding depth of technical stuff, am bad at logic

  • @zuyyx4565
    @zuyyx4565 2 ปีที่แล้ว +2

    Brother,
    👉I got Loi in April 10th...
    I accepted it......
    👉 April 27 th i got DOJ on May 5th
    BUT
    There send a mail on
    👉 April 29th that ur DOJ was postponed........
    I upload all my documents clearly...
    When will I get another DOJ Mail ❓
    Any requestion will happened ❓
    Who many days it required to send another DOJ Mail ❓❓❓❓

    • @cloudtech5260
      @cloudtech5260  2 ปีที่แล้ว

      If they sent that the DOJ is postponed, then you will definitely get the new DOJ.
      I would suggest, please send an email to fresherhiring.in@capgemini.com.

    • @zuyyx4565
      @zuyyx4565 2 ปีที่แล้ว +1

      @@cloudtech5260 okay sir
      Tq

  • @Pawan-fd6wl
    @Pawan-fd6wl 2 ปีที่แล้ว

    Achha fake interview tha

  • @Sayan_Shankhari
    @Sayan_Shankhari ปีที่แล้ว

    this looks like showing off 🤣