Quantcast
Channel: Why the coding should be "to the interface" especially for primitive datatypes? - Stack Overflow
Viewing all articles
Browse latest Browse all 7

Answer by Matthias for Why the coding should be "to the interface" especially for primitive datatypes?

$
0
0

If you are only using this inside your type (meaning: private) and instantiate it yourself, it doesn't make a real difference.

It starts getting interesting if the public interface of your type exposes a Map vs. a HashMap.


Viewing all articles
Browse latest Browse all 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>