Courses
Log inStart Learning AI
Courses
Log inStart Learning AI
0

I want to have clear explanations about features in equal() method.

I want mainly to know why to use Null, hashcode.

javaequal
15th Jun 2020, 4:55 PM
Jovithe Ntwari
Jovithe Ntwari - avatar
1 Answer
+ 1
The equals() method is used to check objects content and you can go through following links to get clear understanding.. https://www.google.com/amp/s/www.geeksforgeeks.org/difference-equals-method-java/amp/ https://stackoverflow.com/questions/3563847/what-is-the-use-of-hashcode-in-java https://www.google.com/amp/s/www.geeksforgeeks.org/internal-working-of-hashmap-java/amp/ https://stackoverflow.com/questions/21535029/what-must-be-hashcode-of-null-objects-in-java#:~:text=When%20p2%20is%20null%20%2C%20invoking,()%20as%20in%20this%20case.
20th Jun 2020, 9:41 AM
Nikhil Maroju
Nikhil Maroju - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Python intermediate help with dictionaries
0 Votes
Marquee
1 Votes
I'm about to make a complex calculator in python
0 Votes
Any Advise?
1 Votes
How far do courses go on Sololearn?
0 Votes
RUST'S FUTURE
1 Votes
Popsacles Aufgabe
1 Votes
why is python community is too small in sololearn?
0 Votes
Button In C++
1 Votes
Question #2: "Please activate your account and keep learning to enable messaging. An email has been sent to you"
1 Votes