Let\'s suppose I\'m using a library for which I don\'t know the source code. It has a method that returns a List, like so:
public List getObjs
You're correct. That is not a good idea. You need to use the interface form that it's returning.