• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • 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 Respuesta
+ 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

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
Need a personal tutor
1 Votes
I can't figure out how to use the getElementById code in JavaScript Code Playground, I've tried multiple times and watched YT
0 Votes
Fix code
0 Votes
..
1 Votes
How can I turn my .py files to .exe files?
1 Votes
Software to write and run codes
1 Votes
Add lua
0 Votes
How Much RAM is Required for Object Detection Project
0 Votes
Beginner_to_SoloLearn
1 Votes
How to learn C++ and how long does it take
1 Votes