O'Reilly logo
  • Sankara Vadivel Dhandapani thinks this is interesting:

One application of this flexibility is that an API can return objects without making their classes public


Cover of Effective Java, 2nd Edition


Refer Collections.singletonMap() It returns an object of SingletonMap.java which is private but implements Map.java which is public interface.