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
En esta página del sitio puede ver el video en línea Beyond Hash Table de Duración hora minuto segunda en buena calidad , que subió el usuario OutOfBound 08 octubre 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 410 veces y le gustó 31 a los espectadores. Disfruta viendo!