Nataraj,

The hashcode method provides a hash of the object which is primarily used in
hash based containers like HashSet and HashMap.

I do not believe it has anything to do with memory conservation or creation
of duplicate objects.

Regards,
Rajesh Nair

On Wed, Jun 23, 2010 at 9:24 AM, nataraj subramanian <[email protected]>wrote:

> So hashcodes are used to prevent creation of duplicate objects? It's a
> memory conservation thing?
>
> On Jun 21, 6:50 pm, Paul Smith <[email protected]> wrote:
> > Two object which are equal will have equal hashcodes, but two objects
> > with equal hashcodes aren't necessarily equal.
> >
> > Paul Smith
> >
> > [email protected]
> >
> > On Mon, Jun 21, 2010 at 7:17 AM, Emma Olukha <[email protected]>
> wrote:
> > > Off the fly..Hash code is an unique id number allocated to an object by
> JVM.
> > > It basically identifies each object but is not unique.
> >
> > > </oluka>
> >
> > > On 16 June 2010 14:33, NetBeans <[email protected]> wrote:
> >
> > >> wat is mean by hashcode in java
> >
> > >> --
> > >> You received this message because you are subscribed to the Google
> Groups
> > >> "google-codejam" group.
> > >> To post to this group, send email to [email protected].
> > >> To unsubscribe from this group, send email to
> > >> [email protected]<google-code%[email protected]>
> .
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/google-code?hl=en.
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "google-codejam" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<google-code%[email protected]>
> .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-code?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "google-codejam" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-code%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-code?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-codejam" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en.

Reply via email to