Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Rani Singh   on Nov 06 In Java Category.

  
Question Answered By: Leonard Pierce   on Nov 06

every object in java  maintains a hashcode. this is just an integer.
java uses this code for efficient searchig and sorting algorithms.
By default the hashcode of the object will be the memory  address of the objcet.
this default value in not helpful.
Pls refer to hashcode and equals method Object class.

Share: