Saturday, 15 March 2014

java - Why this method is wrong? -



java - Why this method is wrong? -

this question more puzzle rather real question,

what wrong method:

public boolean areequal(long a, long b) { homecoming a==b; }

there nil wrong it, apart fact can throw nullpointerexception if a null (the auto-unboxing throw npe).

java

No comments:

Post a Comment