Anil Philip wrote:This question is different from the thread you referenced because here we are considering different classes - not different instances of the same class (which is what the other thread discussed).
The Oracle tutorial wrote:The protected modifier specifies that the member can only be accessed within its own package (as with package-private) and, in addition, by a subclass of its class in another package.
Lou Hamers wrote:I thought I agreed at first, but actually I don't think that produces an NPE (if the error really is a NullPointerException). That'd be a NumberFormatException right?
Lou Hamers wrote:You should post a more complete example ...
Sam Muller wrote:
Paul Houle wrote:What do you call something that calls a Consumer?