Pergunta de entrevista da empresa T-Systems

What is the internal working of Map

Resposta da entrevista

Sigiloso

22 de abr. de 2019

Map is an interface in java and it is not a sub type of collection and it behaves differently from the rest of the collection. -Map implementation has key and values. -Key has to be unique, value can be duplicated -Some implementations like HashMap , LinkedHashMap allow a null key and null value -The order of map depends on specific implementations, LinkedHashMap and TreeMap have specific behaviour but hash map has no particular order