HashMap myMap = new HashMap<Character, Character>();
Map myMap = new HashMap<Character, Character>();
What is a more technical way to describe the difference between the two above lines of code, in terms of object oriented programming and polymorphism during an interview?
A non technical way seems like it would be:
The left side of the equals sign is how we "talk" to the object, the right said is what the object actually is. The left side could be an interface, but the right has to be an instantiable class since we can't instantiate an interface.