Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Can two equal object have the different hash code?
Home
JAVA
Can two equal object have the different hash code?
0
votes
asked
Jan 27, 2020
in
JAVA
by
rahuljain1
Can two equal object have the different hash code?
#java-hashcode
Java-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 27, 2020
by
SakshiSharma
No, thats not possible according to hash code contract.
Related questions
0
votes
Q: Is it possible for two unequal objects to have the same hashcode?
asked
Jan 27, 2020
in
JAVA
by
rahuljain1
#java-hashcode
Java-questions-answers
0
votes
Q: Can we use random numbers in the hashcode() method?
asked
Jan 27, 2020
in
JAVA
by
rahuljain1
#java-hashcode
Java-questions-answers
+1
vote
Q: What is a.hashCode() used for? How is it related to a.equals(b)?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-hashcode
Java-questions-answers
+1
vote
Q: Can we have two public classes in one java file? A - True B - False
asked
May 18, 2020
in
JAVA
by
AdilsonLima
#java
Java-questions-answers
+2
votes
Q: Can a constructor have different name than a Class name in Java?
asked
May 31, 2020
in
JAVA
by
SakshiSharma
#java-main-class
#main-class-java
#java-constructors
#constructors-java
Java-questions-answers
0
votes
Q: What are different ways to create String Object?
asked
Mar 16, 2021
in
JAVA
by
Robindeniel
#string-object
java-string-object
java-string
java
Java-questions-answers
0
votes
Q: Which design pattern have you used in your production code? apart from Singleton?
asked
Jan 27, 2020
in
JAVA
by
rahuljain1
#java-code
Java-questions-answers
+1
vote
Q: Can a Serialized object be transferred via network?
asked
May 6, 2021
in
JAVA
by
SakshiSharma
#serialized-object
network-object
Java-questions-answers
+1
vote
Q: Can an unreferenced object be referenced again?
asked
May 5, 2021
in
JAVA
by
SakshiSharma
#unreferenced-object
java
Java-questions-answers
+1
vote
Q: How can an object be unreferenced?
asked
May 5, 2021
in
JAVA
by
SakshiSharma
#object
unreferenced
java
Java-questions-answers
...