Integer i = 5000; System.out.println(i.hashCode());
/** * Returns a hash code for this {@code Integer}. * * @return a hash code value for this object, equal to the * primitive {@code int} value represented by this * {@code Integer} object. */ public int hashCode() { return value; }
Login in to like
Login in to comment
or Read more about Java Quizzes
Login in to like
Login in to comment