Latest Tutorials
|
Questions and Answers
|
Ask Questions?
|
Site Map
Home
Java
Frameworks
Database
Technology
Web Development
Build/Test Tools
Servers
PHP
Home
Answers
Viewqa
Java-Beginners
Equals() and Hashcode()
Login
Question
Ask Questions?
venkatesh
Equals() and Hashcode()
2 Answer(s)
3 years and 10 months ago
Posted in :
Java Beginners
View Answers
August 29, 2009 at 5:51 PM
Hi Friend,
The methods Equals and HashCode() are the methods of Object class.
The Equals() method returns boolean values checks whether the two objects are equal or not.
The HashCode() returns the hash code value for the object.
Using these methods,an object can be used to store and retrieve from the hash table,hash map or hash set.
Thanks
August 29, 2009 at 11:10 PM
can you give one hashtable prog using equals() and hashcode()?PLease..thanks in advance
Post Answer
Preview:
Related Pages:
Latest
Frameworks
Category
What is License Terms for using your code
Difference between equals() and == ?
Assignment operator in java
Hibernate Video Tutorial
Conditional operator in java
jQuery Tutorial For Beginners
Show pdf's in web browser by using jsp?
Google says Start Searching India
Most Effective SEO Tools
Assigning value to anchor <a></a> tag using custom tag
Hibernate
Struts 1.x
Struts 2
JSF
JavaFX
Ajax
Spring 2.5
Spring 3
DOJO
iBatis
Flex 3
Flex 4
Hibernate Framework
( 1057 )
Struts Framework
( 836 )
Spring Framework
( 567 )
XML
( 196 )
Ajax
( 528 )
JavaScript
( 109 )
Java
( 1806 )
Web Services
( 71 )
Database
( 145 )
Technology
( 90 )
Web Development
( 503 )
PHP
( 406 )