• Cursos
  • Compilador de Código
  • Discutir
  • Preços
  • Teams
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 Resposta
+ 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

Costuma ter perguntas como essa?

Aprenda de maneira mais eficiente, de graça:

  • Introdução ao Python

    7.1M de alunos

  • Introdução ao Java

    4.7M de alunos

  • Introdução ao C

    1.5M alunos

  • Introdução ao HTML

    7.5M alunos

Ver todos os cursos
Quente hoje
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