Java Coding Interview Questions and Answers | Sorting using comparator | Code Decode | [Most Common]

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ม.ค. 2025

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

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

    These videos helped me in getting placements

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

      Thanks Kiran. Means a lot to us🙂👍

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

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

      ​@@CodeDecodepls pdf hai to send kr dijiye

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

    just wanted to say thank you for all the videos you made, I just got my first job offer as a junior software engineer and I used a lot of your videos to prepare for the interview. Thank you for the help sharing your knowledge!

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

      Many congratulations 🎊🎊🎉🎉Well deserved Jorge. Keep learning keep shining👏👏

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

    Excellent explanation 👌🏻 Recently I have started following this channel and many things got clarified. As an experienced Java developer, Im facing many tricky question in almost all topics : Core Java 6&8, spring, Springboot, Microservices, SQL etc... For my current job search I'm going through this channel only for reference... Really helpful 🙏🏻 Expecting more scenario based questions and answers also more design pattern and Microservices interview questions also. If you've covered already I'll check it else pls try to upload the tricky questions in these areas too ..

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

      Thanks a lot Nandhu. Yes we have uploaded videos on microservices, spring boot, hibernate, sql etc. Please do check them. Sure we will put more videos 🙂👍

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

    I cannot praise you enough for making these knowledgeable videos

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

      Thanks Aditi. Means a lot to us🙂👍

  • @shubhamkumar-gw4vb
    @shubhamkumar-gw4vb 2 ปีที่แล้ว +8

    This channel is gold 🔥
    Enough for cracking interviews,
    Please continue the uploads and have a playlist on springboot annotations and their working 👍

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

      Thanks a lot Shubham 🙂👍 sure 👍

    • @mounikathalla3440
      @mounikathalla3440 9 หลายเดือนก่อน

      100% please

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

    Hi code decode team
    I have watched almost all of ur videos to prepare for interview along with some others. Thanks to ur way of making thing easy I gave interview for 17 companies and cracked offer of around 10 with maximum hike of approx 220%.

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

      Many congratulations Reshu 🎊🎊🎊🎊very well deserved 👏👏👏👏👏👏👏👏keep learning keep shining as you do 🎊👏🎊👏

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

      You also keep making such knowledgeable videos that help people like us. Can u please create more videos on thread using execute framework?

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

    Hi codedecode, Thank you so much. Your videos have really helped in my interview prep, I have 2 job offers now
    Your videos are too good

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

      Many congratulations Dhanya 🎊🎊🎊🎊well deserved 👍👍

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

    Best channel for learning and implement coding ...

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

      Thanks for the nice words

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

    Please carry forward this series … the future questions seems really promising

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

      They are frequently asked vanshika. Good to see your farsightedness. 🙂👍

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

      Yes please

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

      🙂👍

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

      Good explanation and good topic.. I have experienced these type of questions during my java interview

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

    Great thanks. Awesome videos as always.

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

      Thanks man. Please do participate in the give away

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

    Very Helpful.. Similar question was asked to me in previous interview..
    Pls publish next set of videos.

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

    Please carry forward this series.it will really beneficial in interview

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

      sure swapnshil we will upload more videos on this

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

    Your videos are really covering great content they are really helpful. Only one feedback I would like to give is, kindly go little slow including the mouse movement on the screen so that it would be helpful to new to Java users like me 😊. I really appreciate your content.

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

    You are still gaining subscribers because your teaching skills excellent💯👍

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

    Please carry forward for next codeing questions....

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

      Sure Subramanyam 🙂👍

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

    Please continue and add video for creating a deadlock situation in Java

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

      Sure we will do that 🙂👍

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

    Please continue the series. It will be helpful

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

      Thanks for helping us in deciding priorities 🙂👍

  • @KrishnaKumar-vx5wo
    @KrishnaKumar-vx5wo 2 ปีที่แล้ว +1

    Thanks for making interview preparations easier🙏

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

      You're welcome Krishna

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

    Very helpful and great explanation.

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

    Thank you for your great stuff and presentaion

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

    Your explanation is superb. please continue these series

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

      sure aadi you'll see more video soon

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

    Please carry forward this series

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

      Sure Abhijit we will put more videos on this

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

    I was asked this programming in the interview to sort roll and name of employee using comparator with 2 years experience in java

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

      Thanks Sangeeta. Hope you were able to make it. All the very best for your interviews Girl ❤️

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

    Nice and informative.. Please cover all the scenarios based question.. Thanks

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

      Sure sandeep we will upload more on this

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

    Thank you very much for this clear explanation. And could you please help me with the link for the next video of the questions mentioned in the end of this video?

  • @Pratyush.K.R
    @Pratyush.K.R 2 ปีที่แล้ว +1

    Please continue this series.

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

      Thanks Pratyush 🙂👍

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

    Please make more interview questions based videos for experienced developers, specially related to programming.

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

      Sure Nikita. Is there any specific coding interview questions type u are looking for? Like data structure? Or ms services etc.

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

      @@CodeDecode On java 8 stream and Data structure

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

    madam make a vedeo java program to prevent deadlock in java.tq for ur vedeos its very interesting and happy to learn.

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

    Thanks. Please publish next video in the series.

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

      Thanks for helping us in deciding the path Sourabh. 🙂👍

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

    Provide video on hashCode and equals method with example ecplanation

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

      th-cam.com/video/4X5Kgi2VltI/w-d-xo.html

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

    Great Content. But need one help regarding AddressComparator..how it was prepared ? If I prepare
    AddressComparator implements Comparable then in Main class it is not possible to use :
    Collections.sort(employeelist, new AddressComparator());

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

    Kindly Discuss other Interview Questions as well

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

      Sure we will cover it soon

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

    Hands down I am so happy I came across this amazing goldmine of knowledge ! Thanks for contributing such quality content .

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

      These comments make our day Gyan. Feels its worth creating videos 🙂🙂thanks a lot 👍🙂

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

    HI, thanks for the videos. Could you please create playlist for a roadmap or path for full stack experienced developers

  • @Pkhan16
    @Pkhan16 6 หลายเดือนก่อน

    Hello Mam. This is a very informative and helpful video. do we have any more such videos covering programming questions asked in interview? Thanks alot

    • @Pkhan16
      @Pkhan16 6 หลายเดือนก่อน

      Please reply

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

    Great video, Thanks,
    @Code Decode
    Could you please add Time and Space complexity when you use .sort() / .findAll() / .map() etc.

  • @tejaskumar2106
    @tejaskumar2106 11 หลายเดือนก่อน

    Hi @CodeDecode,
    Can you please make series for java coding / programming that would really help in preparing for coding round
    Thanks

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

    Thanks for your videos 🙂

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

      you're welcome dharmendra

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

    Hello Mam, do you have any pdf for these tutorial ? Please reply. Your collection and way of teaching is really great.

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

      Every thing is in description bar below Sanjeet🙂👍👍

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

    Good explanation

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

      Thanks Vaishnavi🙂👍

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

    Please carry forward

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

      Sure we will create more videos on this

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

    In name comparator instead of compareto we can take length also right and subtract it .

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

    Pls continue the series

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

      Sure Harish 🙂👍

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

    Thank a lot ❣️

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

    very nice

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

    Java8 completable future - Could you please explain this concept?

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

      Sure we will do that 🙂👍

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

    Thank you 😊

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

    Please create video for spring security with jwt

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

      sure we will create it soon

  • @ManishGupta-vt7vc
    @ManishGupta-vt7vc ปีที่แล้ว +1

    Hello mam can we get the doc of pdf what you are referring for to explain as a notes

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

      Hey Manish every thing you need is in description bar below the video. 👇 any thing else you need?

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

    Cam u post a video on microservices

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

      th-cam.com/play/PLyHJZXNdCXsd2e3NMW9sZbto8RB5foBtp.html

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

      what is latest industry version of java

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

    Hi, can you please tell me how to find the second highest salary in a department using java lambda, java 8 or the traditional way. This is a question asked in a interview. Thanks for the help

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

      List salary = List.of(200,100,300,400,500,600,700,800);

      List sortedsalary = salary.stream().sorted().collect(Collectors.toList());

      System.out.println(sortedsalary.get(1));

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

    Please carry forward this series..

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

      Sure thanks Nidhi 🙂👍

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

    hi mam,please do a vedio on full maven

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

      Sure pranay. We will🙂👍

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

    please cover the rest questions also

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

      Sure we will cover it soon

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

    Can you please update the. Spring batch videos

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

    Can you please explain other questions also.

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

    Hello madam can you do this with streams . Java 8 as in interviews they are asking to do these using streams . All these old approach they are not expecting . Please explain . Thanks in advance .

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

      Ww have already covered many such questions with java 8. Please have a look at java 8 playlists. Do you want link to those videos?

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

      @@CodeDecode can you give us an idea on how to do this same with streams Concept . Thanks in advance

  • @AjithKumar-yc8cu
    @AjithKumar-yc8cu 2 ปีที่แล้ว +1

    Hi mam we need react js questions mam by part 1 part 2....etc

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

    Can u make a video on microservices

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

      th-cam.com/play/PLyHJZXNdCXsd2e3NMW9sZbto8RB5foBtp.html

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

    How to prevent deadlock in Java

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

      👍will upload a video on deadlock

  • @FunTalezReaction
    @FunTalezReaction 9 หลายเดือนก่อน

    why havent used Lamba expression

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

    Please cover the linked list questions

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

      Sure Akash 🙂👍

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

    Too fast mam please maintain little slow all will understand better🙂

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

      Sure we will slow down our pace from next videos👍

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

    can you share pdf for slides shown

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

    How to put address ?

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

    🙌

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

      Thanks Amarthya 🙂👍

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

    It would be better if you take some more time for explanation

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

      Sure Ravi 👍🙂

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

    your content is great
    just politely want to ask you to not flaunt your english accent please

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

      Ohh i thought I was very bad with my accent. Will work on my English 👍

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

    🙏😌

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

    Hi guys 😀

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

      Hello Subramanyam 🤓😝

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

    Please carry forward

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

      Sure Sunaina 🙂👍