Internal Implementation of HashMap in Java 8

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

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

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

    Interesting fact to know which I wasn't aware of, Thanks!

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

    Nice

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

    Informative 👍🏻👍🏻

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

    Hi.
    Code is not visible.. increase or zoom video..

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

    To send the Key left or right of the tree, how keys are being compared if Comparable is not implemented in Key?

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

      By hashcode() and if them equal by System.identityHashCode()

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

    Nice ! crisp & simply put content.
    Have few queries :
    a) How is Parent node decided ?
    b) If it starts becoming unbalanced, due to too many lower/higher values, is Parent Node re-calculated ?

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

      The First element saved in each bucket becomes the parent node of the future tree.

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

    Nice explanation.. thanks very much

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

    Perfect way to make the things clear quickly, thanks for sharing........Can you please share similar details about ConcurrentHashMap ? What is the Segment in CHM and how that locking mechanism different with it ?

  • @mahesh_kok
    @mahesh_kok 5 лет назад +5

    Lots of improvement needed.... Content wise hats off, presentation is very clumsy
    Code not visible the biggest disadvantage of this video ...try zooming it
    And expedite part of videos wherein you are debugging mid parts

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

      use a bigger screen maybe ?

  • @pradeepgoyal9901
    @pradeepgoyal9901 5 лет назад

    Can you share the link of the previous video

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

    So in case of REHASHING, Does it use existing hash code or it calculate new hashcode for the every element??
    Anyone comments is welcome..

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

      calculating NEW HASH CODE is REHASHING

  • @realsanatanchronicles
    @realsanatanchronicles 5 лет назад

    What is the use of Min treefiy threshold = 64?