Java collections framework interview questions and Answers | MOST ASKED | Core Java | Code Decode

Поделиться
HTML-код
  • Опубликовано: 28 дек 2024

Комментарии • 446

  • @shubhamtagalpallewar7125
    @shubhamtagalpallewar7125 4 года назад +101

    It helped me in my interview preparation.. thanks

    • @CodeDecode
      @CodeDecode  4 года назад +16

      Hope you get all your interviews cleared. All the the best 🤟

    • @suratdas3866
      @suratdas3866 4 года назад

      @@CodeDecode aa

    • @realnileshpawar
      @realnileshpawar 2 года назад +1

      Kuthe rahto bhau tu? Do u want to take live instructor led classes? I have over 5 years of experience in corporate.

    • @accforgame8563
      @accforgame8563 Год назад

      ​@@realnileshpawar how do i contact u?.

    • @dubeyankitsarar8084
      @dubeyankitsarar8084 11 месяцев назад

      Yes

  • @kirushnashirre6791
    @kirushnashirre6791 3 года назад +29

    Though I knew about the framework completely, I had an issue explaining it in an organized way, you are just awesome!

  • @rohanbhargava3953
    @rohanbhargava3953 4 года назад +43

    Great video! One addition to the last question on implementation of HashMap
    Since Java 8, once a threshold limit is reached for the number of linked list elements added at a particular node, the linked list is re-ordered to a binary tree to implement faster search for collision cases.

  • @kathiravanjagadeesan
    @kathiravanjagadeesan 3 года назад +13

    Beautiful Effort.IT Field will remember your name forever.

    • @CodeDecode
      @CodeDecode  3 года назад +4

      Thanks for wonderful comment kathiravan. you might not know this but you made our day and all the efforts we did now turned meaningful bcz of such nice words🙏🙏. We , team code decode is grateful 🙏🙏. keep learning Kathiravan, you will surely land at your dream place really soon. all the best 👍👍👍👍

  • @GaneshSingh1
    @GaneshSingh1 3 года назад +1

    I have read theory before but confused after this video cleared all doubts about Hashmap,, thanks a lot

    • @CodeDecode
      @CodeDecode  3 года назад

      We are glad to know that this helps Ganesh 🙏👍

  • @coincidentIndia
    @coincidentIndia 2 года назад +2

    SortedSet uses Comparator(Comparator

  • @prakashkaruppusamy3817
    @prakashkaruppusamy3817 3 года назад +9

    This is a awesome 'Ready Reckoner'. I watched this and all are explained clear and to the point. This is great effort by the creator. Please make more topics and please make more videos. I totally understood the points. All the very best team 👍👏
    With Regards,
    Prakash Karuppusamy

    • @CodeDecode
      @CodeDecode  3 года назад +2

      Thanks for the nice words Prakash. We will sure make more videos like this ....

  • @robinbhargava111
    @robinbhargava111 Год назад +2

    Very informative and quick to brush up collection framework with examples.

  • @robelhailab394
    @robelhailab394 Год назад +2

    Great Explanation!!!
    One more point: Hashtable doesn’t extend Hashmap.
    It extends Dictionary Class.

  • @pallavipatare2004
    @pallavipatare2004 3 года назад +1

    This is my first ever RUclips comment. I just logged in to youtube so that I can comment on your video.
    You are awesome. Very well explained, very well organised. Keep it up. No nonsense videos. I am preparing for my interviews using your videos only. Pls countinue uploading many such videos.

  • @mitra.1
    @mitra.1 10 месяцев назад +1

    Thanks a lot.. The best Collection summary available on YT.

  • @venkatv3690
    @venkatv3690 2 года назад +1

    Best i have seen before the way ur explaining very well thank you

  • @jasper5016
    @jasper5016 3 года назад +2

    It enhanced my knowledge for sure. Thanks.

  • @nikhleshagrawal
    @nikhleshagrawal 3 года назад +24

    from Java 8, the linked lists are dynamically replaced with balanced binary search trees in collision resolution after the number of collisions in a given bucket location exceed a certain threshold.
    This change offers a performance boost, since, in the case of a collision, storage and retrieval happen in O(log n).

    • @CodeDecode
      @CodeDecode  3 года назад +4

      Yes we have covered that in latest videos I. E. top interview questions 👍👍. Thanks

    • @jakubdudek4133
      @jakubdudek4133 Год назад +1

      For others who are interested in that particular topic, the threshold by default is 8 as far as I remember. :) So "after" 8 nodes, LinkedList is being switched to Tree Balance Structure.

  • @sharathrajesh9494
    @sharathrajesh9494 8 месяцев назад

    Hi Mam, this video about collections helped me during my interview with TCS and I secured a job offer!
    Thank you very much and I will continue to look through your other videos to help broaden my knowledge

  • @dasarajusaikumar8585
    @dasarajusaikumar8585 3 года назад +4

    your phone vibrates in almost all of your videos. thats very nice :-). it's not a complaint, take it as a compliment

    • @CodeDecode
      @CodeDecode  3 года назад +2

      we fixed this issue in new videos. Thanks 👍👍😊😊

    • @farrukhahmedsid
      @farrukhahmedsid Месяц назад

      how this can be a compliment? :D

  • @JourneyswithAK
    @JourneyswithAK 2 года назад +1

    Seriously very great explanation ❤️

    • @CodeDecode
      @CodeDecode  2 года назад

      Thanks a lot 🙂🙂👍👍

  • @savitarohra3905
    @savitarohra3905 3 года назад +3

    Everything explained to the point!! Thank you for making great videos

  • @Athira_Surendran
    @Athira_Surendran 3 года назад +3

    The way you explaining each topic is awesome.
    Thank you for the amazing video.

    • @CodeDecode
      @CodeDecode  3 года назад

      Thanks for the nice words.....

  • @vinodkumar-lq7oo
    @vinodkumar-lq7oo 3 года назад +1

    Really very good explanation.
    We are lucky to watch this.

  • @shivaniagrawal4473
    @shivaniagrawal4473 3 года назад +2

    Thank u so much,your way of explaining concepts are wonderful.I am feeling so confident in Java after watching your interview questions.

    • @CodeDecode
      @CodeDecode  3 года назад +1

      Thanks Shivani 👍👍. Keep learning keep shining ⭐✨⭐✨

  • @satishdhaigude629
    @satishdhaigude629 Год назад +1

    Thank you, nice explanation of all collections, mostly I like internal working of hash map, got the more clarity….

    • @CodeDecode
      @CodeDecode  Год назад

      ruclips.net/video/7k0VYHuUF6g/видео.html

  • @sagarmane3291
    @sagarmane3291 2 года назад +1

    Superbbb...! your explanation skills are just awesome....
    and ur voice is adorable as well. thanks for this questions set it will be really helpful

  • @praveenpatel3957
    @praveenpatel3957 9 месяцев назад

    This special video covered all related to collection and its interview questions have watched so many videos about that but here have learnt in very different way thanks for sharing such valuable content in the video keep sharing like this we get to learn more..❤❤

  • @sivasankarbestha
    @sivasankarbestha 3 года назад +1

    Very clear explanation.. and provide example code 👍👍👍👍

  • @rishiraj2548
    @rishiraj2548 Год назад +2

    5 lakh 48 thousand + views
    Congrats 🎉🎉🎉

    • @CodeDecode
      @CodeDecode  Год назад +1

      Thanks Rishi for your constant support

  • @rishiraj2548
    @rishiraj2548 9 месяцев назад

    16:07
    ConcurrentModificationException:-
    When modification is performed on a collection by the same thread which is iterating over that collection.
    It's not about two distinct threads for iterating and modifying.

  • @farrukhahmedsid
    @farrukhahmedsid 7 месяцев назад +1

    Yes this is literally most asked and top questions. Thanks.

  • @arifpari9561
    @arifpari9561 4 года назад +3

    You just nailed the Collections . One small request please do video on Collections on Java 8 prospective.

    • @CodeDecode
      @CodeDecode  4 года назад +3

      Sure will make a seperate video on Java 8 specific changes

  • @solomonrajkumar5537
    @solomonrajkumar5537 3 года назад +1

    Hats off very nicely explained and your presentation is also too good.

  • @kamallochannayak2706
    @kamallochannayak2706 3 года назад +1

    Thank you mam .....your way of talking/understanding.....love it

  • @shubhamshende9995
    @shubhamshende9995 2 года назад +1

    very clear and crisp explaination 💥

  • @gurudassulebhavikar
    @gurudassulebhavikar Год назад +1

    In case of hash collision it also uses equals method to check if key is same. If it is same then it updates the value. Otherwise, new node is inserted.

  • @kajalkukreja694
    @kajalkukreja694 3 года назад +1

    Very good questions and their detailed explanation. Thanks 👍👍

    • @CodeDecode
      @CodeDecode  3 года назад +1

      Thanks for the nice words...

  • @anshumanpanigrahi7817
    @anshumanpanigrahi7817 3 года назад +3

    Ma'am, thank you for this.
    It really helped me in cracking Amdocs. I was able to recall the exact same thing you taught in this video.
    I can say, that I've done DSA and used every framework that's why it looked very understandable at the very first go.

    • @CodeDecode
      @CodeDecode  3 года назад +1

      Congratulations Anshuman 🎊🎊🎉🎉

    • @shouryapradhan184
      @shouryapradhan184 3 года назад

      HI Anshuman , Bro i have an Amdocs interview in upcomming week. Can u pls help me in that like how is the interview and what questions were asked in that interview please ? Can we connect?

    • @anshumanpanigrahi7817
      @anshumanpanigrahi7817 3 года назад +1

      @@shouryapradhan184 Topics- Java, Oops, Threads, Collections, SQL, DBMS, Unix commands, 2 programming questions. Go through interview experiences from gfg & Coding Ninjas/CodeStudio, that'll be enough.
      Mine was for developer profile.

    • @shouryapradhan184
      @shouryapradhan184 3 года назад

      @@anshumanpanigrahi7817 Thanks a lot for reply bro. Mine interview is also for developer role 2 years of experience. May i know what type of programming questions were asked in interview ?

  • @nagavenkatakishore4109
    @nagavenkatakishore4109 4 года назад +1

    Nice explanation friend thank you very much for sharing.

    • @CodeDecode
      @CodeDecode  4 года назад

      Thanks for the nice words 👍

  • @bhavyabhardwaj4563
    @bhavyabhardwaj4563 8 месяцев назад +1

    Very good explanation of Internal working of hashmap. Liked it.

  • @kemparaj565
    @kemparaj565 2 года назад +1

    Very good. Explanation. Thank You 😊

  • @ronyuniverse
    @ronyuniverse 2 года назад +1

    Good one mam,please continue such videos.

    • @CodeDecode
      @CodeDecode  2 года назад

      sure we will upload more

  • @RaviK-lv9zf
    @RaviK-lv9zf Год назад +1

    Beautiful voice.. 😅 and the content is so good that you almost covered main topics that can consume most of the time at institutes.

  • @Hare_Krishna143
    @Hare_Krishna143 2 года назад +2

    Such helpful content and appreciate your hardwork Thank you mam!!

  • @SuperMilanjain
    @SuperMilanjain 3 года назад +3

    Really a nice approach to make understand the topic. Just one request, plz add some behavioral questions related to collection as interviewer can ask that also.

  • @kazaasekhar
    @kazaasekhar 3 года назад +3

    very nice but need more questions from collections with demonistration

    • @CodeDecode
      @CodeDecode  3 года назад

      Sure we will create soon

  • @chishamalama
    @chishamalama 2 года назад +1

    Thank you once again for explaiing clearly

    • @CodeDecode
      @CodeDecode  2 года назад

      Thanks Chisha Malama 🙂🙂👍👍

  • @WondersOfWandering
    @WondersOfWandering 2 года назад +1

    Excellent videos, Thank you so much!

  • @sekhar14301
    @sekhar14301 Год назад +1

    Thanks for wonderful explanation 🤝

  • @shamilraj322
    @shamilraj322 2 года назад +1

    Thank you for a very detailed explanation. :) Expecting more videos like this.

    • @CodeDecode
      @CodeDecode  2 года назад +1

      Sure Shamil. We will upload more videos on collection framework

  • @seethegodinyou
    @seethegodinyou 2 года назад +1

    Thank you so much , I found all my interviews questions from there...We need people like you!

    • @CodeDecode
      @CodeDecode  2 года назад

      Thanks for nice words chandan

  • @deviprasadhota2617
    @deviprasadhota2617 Год назад +3

    Nice work...one mistake is map interface doesnt extends(not implement) Collection interface

  • @BhushanRawoolShridhar
    @BhushanRawoolShridhar 3 года назад +1

    Nice explanation,you are doing a great job. Thank You

  • @Sakshi-gs5tl
    @Sakshi-gs5tl 6 месяцев назад +1

    Awesome video for java collections 💯💯💯

    • @CodeDecode
      @CodeDecode  5 месяцев назад

      Thanks sakshi 👍

  • @tusharkawade1937
    @tusharkawade1937 5 месяцев назад +1

    4:42 small correction, I think Linkedlist do allow index base search

  • @kaushikigoel759
    @kaushikigoel759 2 года назад +1

    Each and every video is so informative!! Love your content ❤️..

  • @sureshgarine
    @sureshgarine 3 года назад +1

    Thank you so much, madam. You explained in-depth and very nicely

  • @ammarzafar1337
    @ammarzafar1337 2 года назад +1

    Very Well Explained.

  • @sailakshmantech55
    @sailakshmantech55 2 года назад +1

    thank you madem very good explanation 👌👌👌🙏

  • @RickyYadav_at_googleplus
    @RickyYadav_at_googleplus 3 года назад +1

    very nicely explained... eagerly waiting for Multi-threading concepts.. once again good job!

  • @shubhammowade.6019
    @shubhammowade.6019 3 года назад +1

    Respect for your explanation ma'am...

  • @sreejak6776
    @sreejak6776 3 года назад +2

    Pleasr create more tricky questions on collections

    • @CodeDecode
      @CodeDecode  3 года назад

      sure sreeja we will create soon

  • @vinayvjs628
    @vinayvjs628 3 года назад +3

    Best study video for interview

  • @sushmakolli1119
    @sushmakolli1119 3 года назад +2

    Please make another video(part2)on collections tricky questions and include concepts like internal working of hash set

    • @CodeDecode
      @CodeDecode  3 года назад

      ruclips.net/p/PLyHJZXNdCXsfqAkteaQ6JfZ_IHvxX-Hj3

  • @TheFebruary10
    @TheFebruary10 2 года назад +1

    Very good to remember and recollect

  • @mohammedabraruddin9779
    @mohammedabraruddin9779 2 года назад +1

    yes i would love to see internal working of hashSet

    • @CodeDecode
      @CodeDecode  2 года назад

      ruclips.net/video/7k0VYHuUF6g/видео.html

  • @robelhailab394
    @robelhailab394 3 года назад +1

    You are awesome, thanks for thanking your time to help us on interview preparations!

    • @CodeDecode
      @CodeDecode  3 года назад

      Thanks for motivating us to put more efforts for community 🙂. We are glad to do that 🙂👍

  • @PKS-ky9se
    @PKS-ky9se 3 года назад +1

    Thanks for the great video. Helped me a lot.

  • @harshadakankhar4875
    @harshadakankhar4875 4 года назад +12

    Please make a video for Spring interview questions as well..

  • @rajatram5068
    @rajatram5068 3 года назад +1

    Awesome Explanation

  • @sneharaghuwanshi4933
    @sneharaghuwanshi4933 7 месяцев назад +1

    Hello Ma'am, I have learnt a lot from your channel thank you so much. I have one doubt here that the linked list does not support index based search but it has a get method through which the element is at a specific position?

  • @danilozimermann7809
    @danilozimermann7809 3 года назад +1

    Very well explained! thank you

  • @neerajkbc
    @neerajkbc 3 года назад +1

    Thanks for the video, really helpful 👍

    • @CodeDecode
      @CodeDecode  3 года назад +1

      You are welcome neeraj...

  • @sourabhjinde8191
    @sourabhjinde8191 2 года назад +1

    Thanks.. that was awesome 👍

  • @venkatkancharla984
    @venkatkancharla984 3 года назад +2

    thanks for all the tricky quaetions, please explain the HashMap with some examples and this is very short. because i was understanding this only theoretically but havent't implemented. bit more explanation on hash map.. it also talks about the equals() and hashCode() contract..

    • @CodeDecode
      @CodeDecode  3 года назад +1

      Hi Venkat
      These are only interview questions. Will create tutorial for this very soon 👍👍

    • @venkatkancharla984
      @venkatkancharla984 3 года назад

      @@CodeDecode sure, thanks

  • @satishr2071
    @satishr2071 4 года назад +3

    Nice video keep it up 👍

  • @kshitijnimkar4252
    @kshitijnimkar4252 4 месяца назад

    Content is really usefull mam! If possible can you attach ppt document also with the video. It would help for quick recap

  • @venkatasaikrishnak6984
    @venkatasaikrishnak6984 3 года назад +1

    Please continue and create video for internal working of hashset as well.

  • @arunkumarmn7493
    @arunkumarmn7493 3 года назад +1

    Wow great explaination

  • @taheershaikh9184
    @taheershaikh9184 2 месяца назад

    OMG this is really what java developers are looking for

  • @kp-ps7wi
    @kp-ps7wi 3 года назад

    Explanation is awesome. Just a suggestion. In the diagram just put dotted line for interface and solid line for class. So while seeing the diagram people will understand the concept.

    • @CodeDecode
      @CodeDecode  3 года назад

      That's a very nice suggestion. Thanks 🙏👍👍👍👍

  • @realnileshpawar
    @realnileshpawar 2 года назад +1

    Gem 💎 👌👌👌👌👌

    • @CodeDecode
      @CodeDecode  2 года назад

      Thanks Nilesh 🙂🙂👍👍

  • @joyateechattopadhyay9510
    @joyateechattopadhyay9510 18 дней назад +1

    Very nicely explained ..

  • @AK-tt7fc
    @AK-tt7fc Год назад

    the video is very usefull . at 3.40 you interchangeably used implements and extends keyword . if possible correct that .

  • @narendulatharun9624
    @narendulatharun9624 4 года назад +1

    Wow great mam thanks for this amazing video🔥

  • @ankush_in_sync5998
    @ankush_in_sync5998 2 года назад +1

    Thank you. Keep it up.

  • @praveenagrawal9616
    @praveenagrawal9616 2 года назад

    Thanks for the video. It's really helpful for interview preparation. One small doubt I have in 6:57 you said hashset internally implements hashtable and one null value can contain. But hashtable doesn't contain any null key and null value.. Please explain and correct me.

  • @jeevansaimanikanta782
    @jeevansaimanikanta782 3 года назад +4

    Thanks . Please do the video showing the internal implementation of HashSet as well and also tell the info like in which scenario which kind of Collection is the suitable one to use

    • @CodeDecode
      @CodeDecode  3 года назад +1

      Nice topic thanks 👍

  • @amitarcade
    @amitarcade 3 года назад

    For hashmap internal working, hashcode method is called by hash method of HashMap and hash method calculates index based on hashcode value

    • @CodeDecode
      @CodeDecode  3 года назад

      ruclips.net/video/7k0VYHuUF6g/видео.html

  • @dipabhow4630
    @dipabhow4630 2 года назад +1

    so nice love it

  • @debasishpanigrahi4503
    @debasishpanigrahi4503 2 года назад +1

    6:50 Hashtable isn't implemented Hashset, it's "Hash Table" in the code of Hashmap. please check and correct.
    I got confused when I watched first.
    If i interpreted wrongly, Please let me know your thoughts.

    • @CodeDecode
      @CodeDecode  2 года назад +3

      Internally hash map uses hash table. Hash set internally uses hash map. So indirectly hash set uses hash table .

  • @Priya1_123
    @Priya1_123 3 года назад +1

    Quite useful info👍

  • @alexandr7686
    @alexandr7686 Год назад

    You forgot top interface Iterable, please update collection hierarchy if possible or add comment. Thanks for video, waiting for next!

  • @vipinahuja6096
    @vipinahuja6096 3 года назад +4

    Thanks for the awesome video. However, 18:40 you mentioned HashMap is slower as compared to its respective concurrent counterparts. But that's not true as HashMap is non-synchronized faster. Please correct me if I am wrong

  • @ravikaramunge8028
    @ravikaramunge8028 3 года назад +1

    Thanks its really helpful 😊

    • @CodeDecode
      @CodeDecode  3 года назад

      We are glad it's helpful. Thanks for writing back Ravi 👍

  • @parulanand7902
    @parulanand7902 3 года назад +1

    Thank you for the amazing video.. It helped me a lot for my interview.

    • @CodeDecode
      @CodeDecode  3 года назад

      Thanks for writing back to us Parul . We hope u land at your dream job soon. All the very best from team code decode, for your interviews. Keep learning keep growing.

  • @shashanksharma7747
    @shashanksharma7747 2 года назад +1

    Good video

  • @koteshwarvenigalla7150
    @koteshwarvenigalla7150 3 года назад +1

    Great explanation!

  • @sriharini8309
    @sriharini8309 3 года назад +1

    Very nice one. CAN you also please elaborate on live examples on each collection class. That's wud help us a lot

    • @CodeDecode
      @CodeDecode  3 года назад

      Sure Anupama 👍👍

    • @sriharini8309
      @sriharini8309 3 года назад

      @@CodeDecode Thaks much for the reply. Please make a video on recat and angula part also.

  • @piyushrayrikar
    @piyushrayrikar 3 года назад +1

    Good content

  • @dungeonmaster2844
    @dungeonmaster2844 3 года назад +1

    Awesome !!

  • @SravanKumarG-ty7bz
    @SravanKumarG-ty7bz 8 месяцев назад +1

    Hi,As you mentioned, Hashset simply implements Hashtable. It means Hashtable is an interface. But hashtable is class, right? Can you please comment on this?

    • @CodeDecode
      @CodeDecode  8 месяцев назад

      " Implemented " by this i didn't mean inheritance . I meant how we code it. It means in real time we implement set using hash table. Means it's backed by hash map/ hash table . Sorry for your confusion. Implemented is a term used in both English language and in technical terms

  • @DiKshu33
    @DiKshu33 5 месяцев назад +1

    @codedecode NavigableSet & NavigableMap interfaces are missed