Map and HashMap in Java with Internal Working- Interview Question

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2024
  • 🎟 Join this channel to get access to perks:
    / @dailycodebuffer
    RECOMMENDED COURSES
    🎬 Spring Boot + React Full Stack Web Application with Tailwind CSS - • Spring Boot + React Fu...
    🎬 Spring Security Full Course | From Registration to Login - • Spring Security Tutori...
    🎬 Microservices using SpringBoot | Full Example - • Microservices using Sp...
    🎬 Event-Driven Microservices with CQRS Design Pattern - • Implement CQRS Design ...
    🎬 Implement SAGA Design Pattern using Spring boot and Axon Framework - • Implement SAGA Design ...
    🎬 Spring Data JPA Tutorial | Full In-depth Course - • Spring Data JPA Tutori...
    🎬 Deploy Springboot Microservices to Kubernetes Cluster - • Deploy Springboot Micr...
    🎬 Automate Microservices deployment with Github Actions - • GitHub Actions Tutoria...
    🎬 Go / Golang Full Course for Beginners - • Golang Tutorial for Be...
    🎬 Node JS Full Course for Beginners: Learn in 2 Hours - • Node JS Full Course fo...
    🎬 Express.js Tutorial - Beginner | 2021 - • Express.js Tutorial - ...
    🎬 Redis CLI Tutorial | Complete Course - • Redis CLI Tutorial | C...
    BE MY FRIEND:
    👨‍💻. Website: www.dailycodebu...
    👨‍🏫 Facebook: / dailycodebuffer
    🐦 Twitter: / dailycodebuffer
    📸 Instagram: / dailycodebuffer
    🎮 GitHub: github.com/dai...
    MY FAVOURITE GEAR:
    👨‍💻 My Macbook Air M1: amzn.to/3eFXlID
    💻 ASUS ROG Zephyrus G14, 14": amzn.to/32xsXhf
    💻 ASUS ROG Zephyrus G14, 14" (US): amzn.to/3xa6X6m
    🎤 My Main Mic: amzn.to/3qDl0z0
    🎤 My Main Mic (US): amzn.to/3awzUj7
    🎙 My Secondary Mic: amzn.to/3sOZCJW
    🖥 My LG Monitor: amzn.to/3zhLY3e
    🖱 My Mouse: amzn.to/3eDpRKT
    ⌨️ My Keyboard: amzn.to/32xthMZ
    RECOMMENDED BOOKS:
    📙 Mastering Spring Boot 2.0 (Kindle): amzn.to/3HsOiHu
    📙 Mastering Spring Boot 2.0 (US): amzn.to/3tHNUy5
    📙 Building Microservices(Kindle): amzn.to/3gsA1jL
    📙 Building Microservices(US): amzn.to/3dDnfNn
    📙 Spring Boot in Action: amzn.to/32Nf3qW
    📙 Spring Boot in Action (US): amzn.to/32DkeX9
    📙 Spring Microservices in Action: amzn.to/3mQ4sCH
    📙 Spring Microservices in Action(US): amzn.to/32G3Hl7
    🎻 MUSIC:
    🎵 Hear the Noise (Sting): www.youtube.co...
    “Sound effects obtained from www.zapsplat.com“
    #hashmap #hashing #Collections #DailyCodeBuffer
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    I started watching your videos several months ago and today I signed up for my first junior job for java spring developer. Thank you so much, you changed my life.

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

      Great 👍
      Congratulations 🎉
      Glad to be small part of your journey ❤️

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

      Great to hear these success stories 🎉

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

    Congratulation Bhai, By watching ur videos only i started by Microservice journey 3 yeears back.

  • @andreas-fefe
    @andreas-fefe 2 ปีที่แล้ว +1

    Welcome back 🙂 after this rest period. We missed you DCB - Boss

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

    Nice explanation. Please make a video on working of HashSet and TreeSet. They ask this in interviews for experienced developers.

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

    Congrats for 50K subscribers. Good explanation, please post the Angular videos it's very helpful for us.

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

    Thanks.... 🙏🙏 Bhai, please make videos on Spring Framework interview questions...
    Btw, what happened to your right eye? Looks red

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

      Infection, better now
      Thanks for asking

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

    Hey Shabbir, great video. Can you please do a video on comaparator and comparable with examples and usecases, propably how it is asked in interview perspective..

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

    Great explanation using the Java implementation to show the internals.

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

    Congratulations.. please upload Master in microservice and kafka .. thanks in advance

  • @KritiJar-e6n
    @KritiJar-e6n ปีที่แล้ว

    Great explanation. Recently started watching your videos. Really enjoying it. Thank you!

  • @RakeshKumar-hr7my
    @RakeshKumar-hr7my 2 ปีที่แล้ว

    Great job buddy, congratulations for 50k subscribers. Thank you.

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

    sir you are awesome, what a great source of information your channel is, thank you

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

    as always very clean n sufficient enough videos ....
    doubts
    1. why dont we use balanced tree in the first place instead of linkedList
    2. what is the criteria by which tree is made ...i mean go to left or right
    3.. how does hashMap.getKey() works

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

      Purpose of using balance tree later than linkedlist is about the size of the nodes added at specific index of the object created for the hashmap. Dismantling a sub tree of elements that added into balanced tree while deletion of elements in hashmap made, will be faster than removing an element from the linkedlist attached to the index of the object when deletion of elements size is larger. Dirtying the hashmap's elements will be slower when linkedlist size is increased...

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

    Take care of your eye bro... ! :) Kudos to all of your efforts and quality content !

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

      Thanks buddy 🙏🏻
      Thanks for asking, now my eye is much better

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

    Great Work, and dedication brother, looks like you had the flu and your right eye is red, but you still put the effort and made the video.

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

    Excellent explanation 👍👍

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

    Thank you very much!!!

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

    excellent explanation. I didn't know about the java 8 hashmap optimization . learnt something new today. :)

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

    Hats off bro !!! the way you explained !!!

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

    Very Good explanation!

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

    Bring a tutorial for rest services because you have posted videose even on microservices but missing about rest service and mvc.
    Please make a video on it..

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

    Thank you very much Shabbir nice explanation very much helpful please make many more videos on different topics...
    Congratulations for 50 k subscribers.

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

    Congrats shabbir bhai

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

    Excellant explanation it really helps

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

    Congrats bro keep going

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

    Congratulations 👏 for 50K .. keep up the good work 👍

  • @Anilkumar-reddy
    @Anilkumar-reddy 2 ปีที่แล้ว

    Hey Man, As always u will be awesome, finally, I understood. Great Explanation

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

    Hi great explanation!! please let me know why/when should we override equals and hash code method in Java ? If you have already made a video please give me the link..

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

    superb... good explanation...

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

    Bro here i have doubt in one place while doing get operation you are particular key hashing will happen and return index of the position of key. If its not match that key it will look oneby one node traverse if its not found it will return null value finally. Why we need to check one by one node to traverse and find out that key. If you do find exact key value means why could we can use balance tree logic to find out or some search mechanism to find out immediately not by way of traversing node one by one.

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

    I want to learn java from you please ❤️

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

    Clearly explained 👍

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

    @Daily Code Buffer Great video, what IDE and Color Theme are you using?

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

    Thank you brother

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

    Crisp and clear

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

    I like most of spring boot videos. Do you have any plans for language scala with, spring boot. It helps for data engineer profile like me to build top to end.

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

    Hi bro, please make videos on design patterns.

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

    Very nice explanation.

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

    Bhaiya one request Ak long one go video for java and DSA course can we except bhaiya ????plsssss

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

    Back again ❤️❤️❤️

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

    In this. Vdo which ide used anyone know

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

    Awesome bro... :)

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

    Once the size of index increases from 16 , how will hashcode work for same key when it got inserted before and after index size increased?

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

    If the bucket size is more than 64 and one of the particular indexes reaches 8, then only the linked list will get converted to a Balanced tree. Please correct me if I am wrong.

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

    Can you please post a video on how to integrate our rest api with splunk and dynatrace

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

    Hey Shabbir, Great explanation and i have doubt here, why we are using linkedlist in each bucket for storing the nodes,why cant we use simple arraylist?

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

      Array list is the array representation so it doesn't have nodes to connect, where as linked list has nodes which are chained to maintain the links between the nodes.

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

    Good video lesson

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

    Aren't we getting the index from the key within range of 0 to size-1 after applying hashcode() method, if so, what is hashing doing then, what's the difference between both,
    please anyone explain...

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

    Great video

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

    Great work man!!

  • @yashwantkumar-ev8dy
    @yashwantkumar-ev8dy 2 ปีที่แล้ว

    Any plan to launch videos related to Data structure and algorithms using java

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

    Course about KStreams, bro.

  • @SumitSharma-qz2jd
    @SumitSharma-qz2jd 2 ปีที่แล้ว

    Congrats 👏

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

    Please change IDE background to white for clear picture🖼️

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

    Could you do a video on scala language with spring boot

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

    Great vedio

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

      Thanks 🙏🏻

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

      @@DailyCodeBuffer Watching you java interview Question playlist.
      Please detailed vedio of each and every class in collections Framework

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

    I need java 8 feature video

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

    Please make on microservices don't waste time on already existing tutorials

  • @akshaykumar-uv3up
    @akshaykumar-uv3up 2 ปีที่แล้ว

    null shouldn't be in " ".

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

    Mannn keep going your vids are amazing please can you make speing boot + angular projects like the ones with react and nextjs and also we need spring integration testing with DB and how to do BDD in spring thank you and keep going

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

    Bro take care of your eye

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

    Nhi samjha bhai