I'd like to know the total size of a map like this
Map<String, String> map = new HashMap<>();
map.put(string1, string1);
map.put(string2, string2);
//many more lines following until 1 million entries populated to map
as you can see, the key and value always points to the same string and each string is guaranteed to be 24 char long containing lowercase letters and numeric (0-9) only. is it feasible to store this map (in heap I assume) for long term lookup table? how big is the size of this map?