26.8.2020 |

Fun with ConcurrentHashMap

What is the result of:

new ConcurrentHashMap(Map.of(1,2,3,4)).contains(1)

true or false?

The answer is false, not because of a strange behaviour of ConcurrentHashMap but because contains checks for values of a Map not for Keys.

Zur Übersicht

Mehr vom DevSquad...

Jan Sauer

What does gatsby with components inside ./src/pages

Jan Sauer

Ready for Readable Code? - John Papa