Difference between hashCode() & equals()?

Answer Posted / srikanth

hashCode() method returns integer no assigned by jvm
ie ...it is for identifying objects in heap memory very
fastly

equals() it is for comparing addreess of objects

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you reverse sort in java?

496


Differentiate between vector and array list.

625


Highest level event class of the event-delegation model?

3493


What is parsing a sentence?

539


What is the difference between jdk and jre?

598






What is void class in java?

521


For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green  White will have 1 Weight.  Red and Green carry no weights.  Shortest path is the path with less weight when you add up the weights in the path.

1577


What is a locale?

687


What is the mapping mechanism used by java to identify IDL language?

584


Why do we use variables?

505


What is multi level inheritance in java?

552


Why is stringbuffer thread safe?

563


what is the purpose of the runtime class?

548


How finally used under exception handling?

503


Is call by reference possible in java?

527