I know the benefits of declaring functions with interface return values and interface parameters over declaring with concrete implementations.
that is;
public Map getValue(Map m) over public Hashtable getValue(HashMap m)
but
why Map m = new HashMap() is benefical over HashMap m = new HashMap()?
that is;
public Map getValue(Map m) over public Hashtable getValue(HashMap m)
but
why Map m = new HashMap() is benefical over HashMap m = new HashMap()?