when to use == in Java and what does (s==n) mean ?
don't ans if u don't know
Answers
Answered by
1
Answer:
In Java, the == operator compares the two objects to see if they point to the same memory location; while the . equals() method actually compares the two objects to see if they have the same object value.
Pls mark as Brainliest and give thanks :)
Answered by
2
Answer:
In Java, the = operator compares the two objects to see if they point to the same memory location; while the. equals() method actually compares the two objects to see if they have the same object value.
PLEASE MARK ME BRAINLIEST
Similar questions