• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu
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 Odpowiedź
+ 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

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
Mobile number and similarity
1 Votes
Can I import any module in python in this app?
1 Votes
Loops and conditions
2 Votes
GitHub account connecting issue
3 Votes
photo upload issue in html code
0 Votes
Algorithm to create maze-like grid
2 Votes
Coding issue
2 Votes
app for lessons
1 Votes
Alguém Português por aqui?
0 Votes
Any coding competitions?
1 Votes