HashTable vs HashMap vs Concurrent HashMap all kinds of Map implementations

  Рет қаралды 208,203

Ranjith ramachandran

Ranjith ramachandran

9 жыл бұрын

In JDK you have a lot of map implementations that you did not know even existed like EnumMap, IdentityHashMap and a lot of other implementations that are favorites of interviewers. In this video I am exploring various implementations available, and compare and contrast them with very good examples on WeakHashMap and ConcurrentHashmap.
#hashmap #hashcode #java #javaprogramming #hashtable #macbookair #easy #javainstitute #javascript #class #computerprogramming #beginners #learnjava #learn #study #freshers #interview #fypシ #fypシ゚viral #trending #fyp #interviewtips #interviewquestions #mustwatch #usa #india #global #viral

Пікірлер: 177
@bhagyashreedhavalshankh8452
@bhagyashreedhavalshankh8452 7 жыл бұрын
Why did u stop making more tutorials ! Please keep up this amazing work.
@The64v
@The64v 4 жыл бұрын
I think he got a job at Google to be honest with you.
@MakeItStik
@MakeItStik 4 жыл бұрын
+1, he was doing so great with the content.
@MakeItStik
@MakeItStik 4 жыл бұрын
@@The64v :( Really !
@shuvenduoffline
@shuvenduoffline Жыл бұрын
Best of the best! It is the most details and premium content I could say!
@pallavimisra9753
@pallavimisra9753 3 жыл бұрын
Please make more videos.Your explanation is crystal clear.
@gunturmanju
@gunturmanju 5 жыл бұрын
Awesome Tutorial. I always watch these before i take interviews. Thank you !! Please kindly post more :)
@ponsivakumarmanoharan4994
@ponsivakumarmanoharan4994 3 жыл бұрын
amazing, better explanation with good graphics. very easy to understand.
@parthec1
@parthec1 2 жыл бұрын
Thank you ranjith for posting with examples which help u me to remember for ever,,,,keep posting such contents,,👍
@aavocadoToast
@aavocadoToast 3 жыл бұрын
Just came across, this actually seems like a really good channel. Simple, detailed & easy to understand explanations.
@kayeshparvez
@kayeshparvez 4 жыл бұрын
Super teaching man !!
@vaishnavepranav7394
@vaishnavepranav7394 10 ай бұрын
Excellent video. Thanks a lot
@aquasaiyan7877
@aquasaiyan7877 4 жыл бұрын
Thank you sir for giving so many good contents
@betowarrior_
@betowarrior_ 7 жыл бұрын
Kudos, very well explained videos. I'm diving deep into the concurrent api and anything that has to do with multithreading and its really a whole new world.
@JitendraKumar-lt8fl
@JitendraKumar-lt8fl 5 жыл бұрын
Awesome concept of ConcurrentHashMap and ConcurrentSkipListMap
@vaishalibhoite188
@vaishalibhoite188 2 жыл бұрын
Awesome ! Simply Great ! Excellent Explanation ! Thank You so Much !
@SonysonyYnos
@SonysonyYnos 7 жыл бұрын
so fantastic explanation! I love your code examples, very intuitive to follow and have an idea of what's going on. Keep up your good work!
@navnathhajare3499
@navnathhajare3499 2 жыл бұрын
Make more videos please your all unique video
@vyshnavramesh9305
@vyshnavramesh9305 2 жыл бұрын
Summary on concurency: 1. SynchronizedHashMap: - decorator pattern: decorates with synchronization on all public apis 2. ConcurrentHashMap: - only put() is synchronized, that too segment wise. So multiple writes can happen if on different segments By default 16 segment s are present, so 16 threads can write at the same time without locking each other. - thus, no atomicity between get() and put(). You will have to synchronize yourself if your put() depends on get() value. - AtomicInteger/Long.getAndIncrement() is an alternate for maintaining atomicity between get() and put().
@rahulabrol2211
@rahulabrol2211 5 жыл бұрын
very well explained. Please keep this good work.
@arunamuthyala29
@arunamuthyala29 8 жыл бұрын
Very good video
@dhanyakumargonageri4259
@dhanyakumargonageri4259 5 жыл бұрын
nice explanation.......
@voiceguy554
@voiceguy554 4 жыл бұрын
Hey Ranjith...your videos are topnotch...keep them coming :) Thanks!
@cimbonda24
@cimbonda24 8 жыл бұрын
I watched 4 videos man...your channel is unique...precious detail...everybody is used to present only outside the box...I like you present under the hood java...Thanks
@pranjalahluwalia
@pranjalahluwalia 6 жыл бұрын
Don't have words to appreciate your work. Watched around tons of videos but only you had clarity. Thank you so much for your wonderful insight, watched all your videos in one sitting. Please enlighten us by putting more useful videos.
@ranjithramachandran5928
@ranjithramachandran5928 6 жыл бұрын
Thanks for your kind words.
@deepaksrinivas1783
@deepaksrinivas1783 5 жыл бұрын
Great tutorial! Excellent explanation! Please keep uploading more videos!!
@anupamwin
@anupamwin 7 жыл бұрын
Very well explained with examples.Thanks...
@sankar0446
@sankar0446 5 жыл бұрын
Useful great explanation sir thank u
@prakashkchauhannn
@prakashkchauhannn 6 жыл бұрын
Easy to understand and really very Good Explaining. Thanks.
@javahashmap9667
@javahashmap9667 7 жыл бұрын
You are a great tutor and videos are worth watching. Simply great..!
@chetanmunegowda4304
@chetanmunegowda4304 7 жыл бұрын
Thanks so much for sharing your knowledge!!
@tejasshah5188
@tejasshah5188 8 жыл бұрын
Nice video which explain Map data structure in Java
@yeruvanag7006
@yeruvanag7006 8 жыл бұрын
nice yar thank u
@deepalisaxena8019
@deepalisaxena8019 9 жыл бұрын
properly explained. Got alot of clarity for different versions of Map. Thanks.
@balajilinked2527
@balajilinked2527 7 жыл бұрын
Your videos are really interesting and indepth. Thanks and keep the good work going. Waiting eagerly for your next videos.
@terminator8601
@terminator8601 5 жыл бұрын
Ur style is amazing with gr8 knowledge
@rpy1234
@rpy1234 6 жыл бұрын
Smoothly done..Understood everything about Map
@headlesshorseman17
@headlesshorseman17 7 жыл бұрын
Very good video, also you speak very clearly which in my opinion gives you a very big edge over most tutorials out there on youtube. Keep up the good work!
@svalyavasvalyava9867
@svalyavasvalyava9867 Жыл бұрын
awesome explanation, thank you!!!!
@AnkitKumarZ
@AnkitKumarZ 8 жыл бұрын
Really good video. Look forward to more content for you. Thank you.
@fezm210
@fezm210 8 жыл бұрын
liked the video especially the code examples and animation. look forward to more videos ;-)
@basics201
@basics201 8 жыл бұрын
ur teaching way is good ..please make a video on threading in full details.
@sanjayizardar2263
@sanjayizardar2263 8 жыл бұрын
Hats off to you. Keep uploading such awesome videos.
@MaheshKumar-em2yi
@MaheshKumar-em2yi 8 жыл бұрын
Super and it's really very good video on Map interface :) Thank you very much for sharing this video.
@anjaligupta6510
@anjaligupta6510 5 жыл бұрын
Nice sir 👍
@naveen146114
@naveen146114 7 жыл бұрын
Hi Ranjith ramachandran,I have seen all your videos they are outstanding, eagerly looking for more videos on threads and other concepts
@Rambabu-vc1um
@Rambabu-vc1um 7 жыл бұрын
very good explanation. Thank you
@amansrivastava7025
@amansrivastava7025 9 жыл бұрын
good job Ranjith.
@ashishkinger8592
@ashishkinger8592 8 жыл бұрын
Thanks a lot for explaining the maps in details. Waiting for your video on multi threadings.
@syedfazulu6505
@syedfazulu6505 6 жыл бұрын
Thanks Ranjith for sharing knowledge to others ,This is very nice video
@RajVerma-go4xk
@RajVerma-go4xk 7 жыл бұрын
Hi ranjith this video is intersting. please let me know when u r going upload new videos for design patterns, i am waiting eagerly. previous design pattern videos are good.
@MakeItStik
@MakeItStik 5 жыл бұрын
Hi Ranjith, can you upload more videos on concurrency. Everyone is counting on you. Your concepts are clear and explained to the point.
@NeerkumarOOPS
@NeerkumarOOPS 7 жыл бұрын
Really helpful understanding the maps concepts. Appreciate your hard work you put in. Looking more such videos.
@Pritam91kar
@Pritam91kar 4 жыл бұрын
Thanks . Great Explanation .
@rawatumrao17
@rawatumrao17 8 жыл бұрын
Thanks a lot to post such a explanation. Great description with animation again want to say thanks.
@deekshakulshreshtha2429
@deekshakulshreshtha2429 8 жыл бұрын
seriously perfect video, Great Job Sir :) God Bless You Always
@hyperborean72
@hyperborean72 6 жыл бұрын
Great work Thanks a lot
@pvbembalkar
@pvbembalkar 3 жыл бұрын
Truly Masterclass...
@rahulsaini8
@rahulsaini8 6 жыл бұрын
Very well explained. Better teacher than most of them out there. Please upload more topics.
@AnilKumar-pi1co
@AnilKumar-pi1co 8 жыл бұрын
Nice Explanation...
@surindersokhal7135
@surindersokhal7135 7 жыл бұрын
Hi Ranjith Ramachandran, All your videos are very well explained. I have few points to make for concurrent modification exceptions. It is not the modification(put, remove methods of hashmap) that throws the ConcurrentModificationException but iterator.next() actually throws it. Moreover updating the already existing keys does not throw any ConcurrentModificationException. Please correct me, if I am wrong. Regards, Surinder Sokhal
@mahalerahulm
@mahalerahulm 8 жыл бұрын
Very nice explanation !
@alexanderzhang7593
@alexanderzhang7593 8 жыл бұрын
thank U Ranjith, very good Job.
@muralik5504
@muralik5504 6 жыл бұрын
Very well explained, great!!!
@jeetparmar9343
@jeetparmar9343 8 жыл бұрын
Awesome tutorial
@divyanshupreti3434
@divyanshupreti3434 6 жыл бұрын
This is really good. Waiting fr other vids though.
@jayantasen23
@jayantasen23 7 жыл бұрын
Hi Ranjith, Your explanations were very fine. I had one request. Could you please put up a recording about the internal working of CHM code wise in more detail. Like the details about how the CHM is actually working, its internal implementations.
@Dedeepya9
@Dedeepya9 7 жыл бұрын
Didn't get bore in learning although its of around 42 mins.Thanks for explaining with good examples.
@nirajosh
@nirajosh 8 жыл бұрын
Hi Ravi, Its really great content to have a quick tour of all kind of map. It will be beautiful if you can able to prepare some on internals working of ConcurrentSkipListMap similarly where you had nicely documented for HashMap.
@isapir
@isapir 7 жыл бұрын
Excellent tutorial, thanks! It would be great if you could make more tutorials like this. I would personally love to see one about ThreadLocal. Thank you.
@shubhverma9313
@shubhverma9313 2 жыл бұрын
it would have been great if you showed a working example of each Map with expected arguments etc , the explanation for treeMap on how the keys nodes are added was not clear , are they sorted and added or are they added and then the map autosorts them as a part of the push
@chanchalsahu5023
@chanchalsahu5023 7 жыл бұрын
Thanks for uploading videos It helps a lot
@amitsoni9
@amitsoni9 7 жыл бұрын
Kudos!! I love this tutorial. Please upload everything in a series.
@akshaythakur147
@akshaythakur147 3 жыл бұрын
where are you not posting new content? your videos are amazing, keep up the good work
@bhushanbhange7065
@bhushanbhange7065 7 жыл бұрын
@Ranjith ramachandran Looking forward for Advanced multi threading ! Watching your videos one would realize "Any thing is simple if you know it thoroughly "
@bikashrajguru
@bikashrajguru 8 жыл бұрын
Thanks a lot Sir :) Awesome tutorial By any chance can u share the ppt u used for explaining them.
@AyushKumar-qi2qv
@AyushKumar-qi2qv 8 жыл бұрын
Sir...Your explanations are really good. Please keep making such videos. Suggestion: Make a complete series on Java - Beginner to Advanced Levels. It would help a lot. Thanks a lot again.
@dudadoodedoodedoode
@dudadoodedoodedoode 8 жыл бұрын
Adipoli explanation machanae! Subscribed!
@snjkmr568
@snjkmr568 8 жыл бұрын
nice explanation
@vipinkoul9129
@vipinkoul9129 4 жыл бұрын
Awesome :-)
@manishthakur2382
@manishthakur2382 2 жыл бұрын
I have just one question, Why did you stop making these brilliant videos ????
@ipuluforu
@ipuluforu 7 жыл бұрын
Great... Saved lot of time.
@nileshshinde-eb3gi
@nileshshinde-eb3gi 8 ай бұрын
Why you have stopped making videos... We need more content like this in Java🙂
@SanthoshSurimani
@SanthoshSurimani 8 жыл бұрын
Much Appreciated your effort Ranjith.. Good job.
@madhurajsingh6558
@madhurajsingh6558 5 жыл бұрын
Very much in depth
@ashishagrawal7709
@ashishagrawal7709 7 жыл бұрын
Hi Ranjith Sir, Waiting for your more videos on Core java concepts and Specially for Design Patterns..Thanks
@numanmakan7227
@numanmakan7227 5 жыл бұрын
Thanks a lot Ranjith :) Awesome tutorial
@shuklabhanuprakash
@shuklabhanuprakash 6 жыл бұрын
Please make videos on concurrency. You make one of the videos with real world examples and simplest explanation.God bless you.
@terminator8601
@terminator8601 5 жыл бұрын
simply gr8
@penchalrao5297
@penchalrao5297 8 жыл бұрын
Nice Tutorial
@hagerelmahjoub1274
@hagerelmahjoub1274 8 жыл бұрын
Hi Ranjith, I really liked this video, the explanations are clear, even the examples.... I would like to know if you have a video that explains references types in java ( Strong, Soft, Weak and phantom) with examples. Thanks again and really good video Hager
@rohitnarang007
@rohitnarang007 8 жыл бұрын
All your videos are worth watching and very nicely explained. I have a little problem in checking the ConcurrentHashMapExample when you executed the script from command line and running the program infinitely, how can i do in Windows. I have compiled the class and is running successfully. How can i run using script. Can you please explain.
@ranjithramachandran5928
@ranjithramachandran5928 8 жыл бұрын
+rohit narang , it seems that from IDEs it runs OK, again it is a matter of chance. So, what I did is I wrote a shell script(being on mac) that will keep on calling java ConcurrentHashMapExample in an infinite loop, so you can observe a lot of execution results in the console. What OS are you using? If any of the Unix flavors, try a script like : while true do java ConcurrentHashMapExample done (with proper punctuations of course) will do the trick.
@rohitnarang007
@rohitnarang007 8 жыл бұрын
+Ranjith ramachandran Thank you for your prompt response. Actually while is not working in a .bat file(in Windows) . So i make use of goto in batch file. Batch file is like (@echo off :point java ConcurrentHashMapExample pause goto point) and it does the trick :).
@meekutelusaaa
@meekutelusaaa 8 жыл бұрын
A classic explanation...
@jstar0008
@jstar0008 7 жыл бұрын
Great Videos!! Its like practically explaining everything whats on the book. Moreover, its a while now that I have been waiting for your Thread video. It would be great if you could also publish videos on topic like SOAP & Restful.
@sandipbhaumik
@sandipbhaumik 6 жыл бұрын
Please add some more videos which will help us to acquire the knowledge.
@shashankpaliwal6859
@shashankpaliwal6859 6 жыл бұрын
When are you uploading more videos? Really looking forward to more videos like this.
@narendra9903
@narendra9903 5 жыл бұрын
Superb explanation...Have s doubt on why concurrenthashmap does not allow null key?You said values can change between api calls?What do you mean by this?You mean keys of map will change after calling methods.please clarify.
@samk8806
@samk8806 6 жыл бұрын
Excellent
@JainNamit
@JainNamit 3 жыл бұрын
Why have you stopped uploading...I have learned a lot from your tutorials. Please continue uploading more stuff on java concepts. And please create playlist of all java videos...so that I can add it to my library.
@luckg4943
@luckg4943 4 жыл бұрын
more details about source code are provided will be better.
@snair1986
@snair1986 8 жыл бұрын
Nice explanation Ranjith. Helps in better understanding.Just a small rectification, its "Hashtable" and not "HashTable".
@swapnilredekar1321
@swapnilredekar1321 7 жыл бұрын
Hi Ranjith, Ur video was interesting. Please explain the difference between Collections.synchronizedMap() and hashtable.
@rupsag1520
@rupsag1520 5 жыл бұрын
Your tutorials are really helpful..Why are not u uploading new tutorial videos? Please make and upload more videos.
Equals and hashcode contract
13:50
Ranjith ramachandran
Рет қаралды 86 М.
Box jumping challenge, who stepped on the trap? #FunnyFamily #PartyGames
00:31
Family Games Media
Рет қаралды 29 МЛН
EVOLUTION OF ICE CREAM 😱 #shorts
00:11
Savage Vlogs
Рет қаралды 14 МЛН
About java.lang.String, why String is special in java - String tutorial
39:19
Ranjith ramachandran
Рет қаралды 109 М.
Garbage collection in Java, with Animation and discussion of G1 GC
44:20
Ranjith ramachandran
Рет қаралды 486 М.
Learn Hash Tables in 13 minutes #️⃣
13:26
Bro Code
Рет қаралды 341 М.
Faster than Rust and C++: the PERFECT hash table
33:52
strager
Рет қаралды 540 М.
Java Concurrent Collections: ConcurrentHashMap and BlockingQueues
20:57
Douglas Schmidt
Рет қаралды 4,7 М.
Array vs. ArrayList in Java Tutorial - What's The Difference?
17:36
Coding with John
Рет қаралды 513 М.
Box jumping challenge, who stepped on the trap? #FunnyFamily #PartyGames
00:31
Family Games Media
Рет қаралды 29 МЛН