Java Collection Interview Questions & Answers | Tricky Q&A | Freshers | Experience | JavaTechie

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ก.ค. 2021
  • In this tutorial we will discuss Java Collection frameworks frequently asked interview questions and answers with Example , all the topics we will cover in upcoming tutorial
    #javatechie #CoreJava #Interview #QA #Collection
    GitHub:
    github.com/Java-Techie-jt/int...
    Blogs:
    / javatechie4u
    Facebook:
    / 919464521471923
    guys if you like this video please do subscribe now and press the bell icon to not miss any update from Java Techie
    Disclaimer/Policy:
    --------------------------------
    Note : All uploaded content in this channel is mine and its not copied from any community , you are free to use source code from above mentioned GitHub account
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    I've been on a streak watching your tutorials for my interview prep, you are really helping a lot in quickly brushing up and also learning new concepts. More power to you...!!

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

    So far the best and crisp, as it's not just tells theory..it's with example. Great job 👍

  • @abhishekgowlikar
    @abhishekgowlikar 5 หลายเดือนก่อน +4

    Everyone need this whether fresher or experience, Good Work and Content.

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

    this video covered all the key questions asked in interview. Please create these interview questions video more oftenly.

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

    very clearly explained,waiting for more in this series

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

    Well explained. I especially liked the Hashmap explanation with diagram

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

    Just completed watching 😊. Whoever reading the comments section, pls watch his interview question collections videos without having second thought. You will get many questions in interview for sure. Sharing this with my personal interview experience.

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

      Thanks Nandni

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

      Watch full collections interview questions here part 10 to 15.....

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

    One of the best interview videos ever seen for Java.
    Excellent job. Thank you.

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

    Great tutorial brother. But i believe, for normal hashmap lock will not be applied on whole collection. Lock will be applied on whole collection in synchronised hashmap . And as u rightly said segment wise locking in concurrent hashmap
    Anyways you doing a great job with interview playlist in helping so many IT people get jobs during this boom😄

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

    Great tutorial on Collections Framework interview questions, very informative, thank you!

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

    You are indeed Java Techie sir, Crisp explaination.. 🙌

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

    This was ultimately awesome👏✊👍
    Thanks a lot🙏🙇
    Waiting 4 nxt vdo...😊🇮🇳🙏🌻👏👏👌👌

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

    Appreciate your efforts , thanks for the good job, invaluable contribution to the community.

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

    It would nice help if you could make some video related to DSA which are mostly asked during the interview for all kind of technical postions in Java.

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

    Just woow!!! Great content..keep it up man

  • @namjitharavind
    @namjitharavind 3 หลายเดือนก่อน +1

    Thanks for the video. Concurrent HahMap is not Synchronised. ConcurrentHashMap in Java is indeed thread-safe, but it achieves this without using traditional synchronization mechanisms like locks. Instead, it uses a different approach called "lock-striping" and "compare-and-swap" operations to allow concurrent access from multiple threads without blocking them unnecessarily.

  • @arunprasad8261
    @arunprasad8261 8 หลายเดือนก่อน +1

    Thanks Sir.. Very much helpful in preparation.. Concepts are quite clear and proven

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

    very good set of questions covered .. Thanks for the video ..!!

  • @sreddy8141
    @sreddy8141 3 ปีที่แล้ว +37

    Basant sir, please start series on data structures and algorithm, its a humble request. Please

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

    Thank you so much , it is a much needed videos for all job seekers 🙏🙏🙏🙏

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

    Good job !! Ur video helped to understand quickly about collections 👍

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

    Nice content keep it up ....

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

    most beneficial video, all concepts cleared. Will surely recommend

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

    Thanks allot for clear explanation ..I have gone through your and Durgesh sir video's ...And I am very confident about comming interview...

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

    your content is always best sir

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

    Dear JavaTechie Very good awesome videos

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

    Excellent job

  • @uvanana.
    @uvanana. 2 หลายเดือนก่อน +2

    Superb ❤

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

    Great tutorial for quickly brushing up on concepts before interviews. Thank you!

  • @AshishYadav-se4db
    @AshishYadav-se4db 3 ปีที่แล้ว +1

    Basant sir great content 🔥🔥🙏

  • @satyarthsharma8308
    @satyarthsharma8308 8 หลายเดือนก่อน +1

    Love it

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

    great work brother.....make video on multithreading as well....and other spring and spring boot

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

    wow sir sir please go through all interview question of java sir we are waiting for your video sir

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

    amazing lecture sir....

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

    Superb bro, thanks

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

    Nice explaination

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

    Excellent

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

    Sir your teaching is vary helpful ,, videos are very important.
    Please make one single video on spring boot interview questions.

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

    Awesome

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

    Excelente

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

    Amazing explanation thank you.

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

    Thank you so much.
    Very helpful. Pls make more this type vdos on spring,springboot,jpa,hibernate etc

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

    Great as always 👍🏽

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

    The Video is very nicely explained.

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

    Great

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

    Thanks for the vedio. Request you to do one AWS EKS microservices deployment .(with 2 services which you created in early vedios)

  • @routhuaravind6006
    @routhuaravind6006 9 หลายเดือนก่อน +1

    just subscribed !!!😊for sharing the source code and material
    tnx a lot

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

    Well done bro👍

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

    Very useful video

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

    Amazing content ❤️

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

    This guy deserves a like

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

    very well explained Techie✌✌✌

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

    Gurug. Thanks a lot

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

    Thank you very much sir🙏🙏🙏

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

    sir naya sikhane ko mila ..

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

    Good video

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

    Very nice explanation and thanks for the information about the interview questions. Is it possible to make video on all datastructures

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

    hi basant, just adding one thing here, if we use java 8 then no need to write custom code for sorting , checking multiple values,
    System.out.println("");
    System.out.println("name and salary basis in java 8");
    Collections.sort(list, Comparator.comparing(Employee::getName).thenComparing(Employee::getSalary));
    for (Employee e : list) {
    System.out.println(e);
    }
    checking one value,
    System.out.println("salary basis using stream");
    list.stream().sorted(Comparator.comparing(e -> e.getSalary())).forEach(System.out::println);

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

    Thanks a ton sir🙂

  • @gkreddy7124
    @gkreddy7124 11 หลายเดือนก่อน +1

    thanks alot

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

    Hi basant, could you please create videos on multithreading and executor framework with examples.

  • @jagrutipatil1020
    @jagrutipatil1020 10 หลายเดือนก่อน

    You are the best 🙏

  • @karthibaby7766
    @karthibaby7766 3 ปีที่แล้ว +18

    Hi basant , great content could you please post Q&A for spring and spring MVC and boot all together with the practical example , it would be more helpful candidates like me .. thanks

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

      Microsevice also

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

      Yes sir..
      Would be helpful

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

      Tusar and hacks I will do this .after saga pattern video

  • @user-sr3sr6fc7k
    @user-sr3sr6fc7k ปีที่แล้ว +1

    helpful thank you

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

    57:53 we are just seeing treemap linearly. but it is not the actual way. treemap entry looks like below: static final class Entry implements Map.Entry {
    K key;
    V value;
    Entry left;
    Entry right;
    Entry parent;
    boolean color = BLACK;
    } what is color black here, what does left,right,parent doing.

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

    Bro you are awesome 💖

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

    Great tutorial for quick recap of concepts
    Great work , Thanks a lot

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

    Thanku so much sir😇

  • @AnilKumar-dt3sq
    @AnilKumar-dt3sq ปีที่แล้ว +2

    Basant Sir, first of all, I have no words to thank you. You are really doing a great job by sharing this invaluable knowledge and experience with us. However, one small doubt - if Set uses Wrapper class like String, Integer it doesn't allow duplicates. Only for custom classes we need to override equals() & hashcode().

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

      Yes that's correct because all wrapper classes by default override equals and hashcode method

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

    very very very nice and helpful interview questions .In no other videos i have seen this good content .this helped me a lot in my interviews.

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

      Keep learning buddy ☺️

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

    Really love you sir...got few offers due to your valuable teaching 😍😍

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

      Thank you kishore

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

    Please upload video on multi-threading tricky questions which asked in interview.

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

    Good one... as usually very well crafted explanations.

  • @satyamkumar-qc1mr
    @satyamkumar-qc1mr 2 ปีที่แล้ว +6

    I generally do not comment on any youtube videos...but this tutorial is so good that i cracked 10+ interviews in just a shorter span of 1 month and got hike of more than 150%.Thanks a lot..and keep uploading such videos for iinterview preparation.

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

      Thanks buddy 😀. Glad to know this

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

    Good job,the way of approach is good i.e theory and then code.keep it up

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

      Thanks buddy 😊

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

    super content and nice explanation, could you please explain how Get method works internally in Hashmap

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

    Excellent coverage of topics. Please make on spring core (same bean name,type) etc.

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

    Awesome explanation and you design a course structure is excellent

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

      Thanks Srikanth 😊

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

    I am eagerly waiting for spring boot and Restful questions

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

    Hello, in CopyOnWriteArrayList - can you print the elements again at the end after coming out of while loop as System.out.println(list); That should print the elements in the list including new elements added at the end from the copied list newly created.
    Another point here is, the iterator supports to delete an element using remove() in case of an ArrayList, though it does not support to add any new element to that. I believe remove() also works in similar concept - creates another copy of original list.

  • @amanabhishek8998
    @amanabhishek8998 8 หลายเดือนก่อน +1

    U rocks again.
    Please make one video of Multithreading interview qustions for more than 5years experienced , in youtube hardly to find any tututorials

    • @Javatechie
      @Javatechie  8 หลายเดือนก่อน

      Thanks buddy these questions also asked in 8+ experience person

    • @amanabhishek8998
      @amanabhishek8998 8 หลายเดือนก่อน +1

      ​@Javatechie for collection I have following this one or I can say , to start any new topic I would search your videos first that much believe we people have becoz addition to core concept u are also including project examples which helps us to form scenarios in interview😊

    • @Javatechie
      @Javatechie  8 หลายเดือนก่อน

      Thank you so much Aman for following Javatechie and appreciate your word 🤗

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

    Hi Javatechie, Thank you so much. Your videos have really helped in my interview prep, I have 2 job offers now
    Your videos are informative and really useful

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

      Cool buddy. Good to hear this

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

    Please make video on spring and microservice interview questions

  • @GOPINATH-xb3im
    @GOPINATH-xb3im ปีที่แล้ว +1

    First i thought this is going to be the same as always like difference this with this & difference this with that blah blah sh*t, but I'll say this is best Q&A ever of collection. Thank you sir

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

    Nice Video as always good contents.

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

      Watch full collections interview questions here part 10 to 15.....

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

    You explained excellently

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

      Watch full collections interview questions here part 10 to 15.....

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

    Good content. please upload Multithreading interview questions as well.Thank You!

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

    Please make a video on multi threading interview questions.

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

    Basant sir, I think even there is no guarantee of showing modification as output by ConcurrentHashMap, it depends upon which segment are modified as Iterator is forward moving cursor & cant go back.
    Now suppose, during iteration if we update or added some segment values where iterator had already visited earlier, now ConcurrentHashMap wont able to display those values. In our example, Entry may be added at later segment than Entry and Entry thus its showing in output as Iterator able to access it. 🙏

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

    Basant sir,your content very informative Thank you. please make video on spring spring boot and microservice interview questions and answers.

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

    Thank you very much for the video and great explanation

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

      Thanks Srikanth

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

      @@Javatechie hey can you post a video on real time project example of using threads if possible!

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

    hi sir this is very good video and helpful also but give more questions about collections and also create new video on spring and springboot interviews questions also its also very helpful

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

    Request you to create spring and design patterns also

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

    Please bring multithreading and exception interview questions

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

    44:44 Collections.synchronizedMap(map) and synchronized HashTable both does not have segment level locking mechanism.

  • @KunalKrishna
    @KunalKrishna 8 หลายเดือนก่อน +1

    42:47 note there can only be 1 entry with key=null, however, there may be several entries having value = null

  • @parimalamparimalam10
    @parimalamparimalam10 8 หลายเดือนก่อน +1

    automation testing also will
    ask same
    way

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

    Please create internal implementation of collection , like how it internal works..

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

    Please make one video on multithreading interview questions in java (Future vs CompletableFuture)

  • @deepakgowda7292
    @deepakgowda7292 11 หลายเดือนก่อน +1

    awesome explanation sir thank you so much sir ❣ sir which company you are working in ?