4 ms·
'a.b()' dereferences 'a' to call its 'b' method. If 'a' is null you'll get a NullPointerException.
by cbr 12y ago
'a.b()' dereferences 'a' to call its 'b' method. If 'a' is null you'll get a NullPointerException.
- sixbrx 12y agoAlternatively, the NullPointerException could be viewed as a simple leakage of implementation details, which is a common issue with exceptions.