Programming - Type Casting - Discussion
You Are Here :: Home > JAVA > Type Casting -
Discussion
|
Q. |
How to compare two objects?
|
A. |
hashCode() |
B.
|
equals()
|
C.
|
Both
|
D.
|
None
|
|
Answer: |
Option
C |
Explaination: |
Object comparison – hashCode() & equals()
|
Discussion
Your Comments Goes here... |