O'Reilly logo
  • SankaraVadivel Dhandapani thinks this is interesting:

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

From

Cover of Effective Java, 2nd Edition

Note

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