Ikpefua Jacob-Obinyan wrote:why do you think E should be a correct answer
Dennis Deems wrote:C and E, are imperatives which can be neither true nor false
Which are true? (Choose all that apply.)
A It is not good practice to place assertions where you think execution should never reach.
B It is sometimes appropriateto call getters and setters from assertions.
C Use assertions to verify the arguments of private methods.
D Assertions can be disabled for a particular class.
E Never throw an AssertionError explicitly.
E is also incorrect.
ogeh ikem wrote:Autoboxing is a widening conversion.
Deepak Bala wrote:I did not understand what you meant by method matching.
Deepak Bala wrote:Henry has provided an example in that link above. Viewed in that perspective you *could* say that is-a relationship was involved in an autoboxing
ogeh ikem wrote:This is a special case scenerio where autoboxing involves not only boxing an int to an Integer, but also involves a widening conversion to a Number.
D In some cases, is-a relationships are used in the process of autoboxing.
... you can autobox an int to a Number (via an Integer).
Dennis Deems wrote:You would never write that code in real life
Dennis Deems wrote:A NullPointerException will happen any place the code calls a method on a null object, regardless of the programmer's wishes
Dennis Deems wrote:It's not like a Stack Overflow or an Illegal State.
Bert Bates wrote:I'd really like to hear other opinions
Dennis Deems wrote:One can only conclude that it simply isn't considered very important.
sagar shroff wrote:Hey Can someone explain why multiple errors.