--- Post Edited in response to comments ---
Basically, the reason it should remind you to catch NullPointerExcepton is because the List interface designers assumed lists that could report any null access as an error.
--- The original message follows ---
Those provided by the standard Java libraries support null, but there are no restrictions on creating a class that implements java.util.List that does not support null s.
If the list does not support null , then checking for null equivalent to an error, so an exception may make sense depending on who implemented the List . This is why the interface should mention a checked exception; because if it is not, then you cannot throw a NullPointerException from a subclass if you want no one to touch the list with null .
Edwin buck
source share