Discussion Board
Go to the previous messageGo to the following message
Current Forum: Homework 5 - Part 3
Date: Mon Nov 19 2001 4:18 pm
Author: Bortz, Andrew S. <abortz@andrew.cmu.edu>
Subject: Re: hashcode()

Is there any reason why it shouldn't? If you look at the specification for this function (in java.lang.Object), it doesn't say anything about returning a positive integer, so I would imagine that a negative hashCode() is just as good as a positive one.
Post response

Go to the previous messageGo to the following message
Current Thread Detail:
hashcode()      Kwok, Jonathan Chong-Xue      Mon Nov 19 2001 3:42 pm       
Re: hashcode()      Bortz, Andrew S.      Mon Nov 19 2001 4:18 pm       
Re: hashcode()      Ghosh, Debmallo S.      Mon Nov 19 2001 5:26 pm       

Back to previous screen