Topics in the video
What is Hash Table?
How does the hash table work under the hood?
What is actually the hash function?
What is collision?
Can we do better?
Board Link: https://miro.com/app/board/uXjVPP-iVR...
Discord: / discord
Linkedin: / ahmedabdelfaheem
Important Note:
In minute 6.20 I miss typed 'HashMap' instead of using a 'HashTable' in the java code and I wanna take the chance to mention the difference between both of them
1 - HashTable is synchronized.
2 - HashTable is thread-safe.
3- HashTable does not allow null keys or null values
4- HashTable is faster.
On the other hand,
1 - HashMap is not synchronized.
2 - HashMap is not thread-safe.
3- HashMap allows one null key and multiple null values.
4- HashMap is slower than HashTable.
What is the meaning of synchronized?
The synchronized keyword is used to define a block of code where multiple threads can access the same variable in a safe way.
Why HashTable is thread-safe?
It is thread-safe because they get put contain methods, etc are synchronized. Furthermore, Several threads will not be able to access the hash table at the same time, regardless of which entries they are modifying
Nesta página do site você pode assistir ao vídeo on-line Beyond Hash Table duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário OutOfBound 08 Outubro 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 410 vezes e gostou 31 espectadores. Boa visualização!