+ 2
Difference between equals() and "==" operator?
4 Answers
+ 9
assignment vs logic operator, dudeđ
+ 5
== -> compares values of primitive data-types, compares the memory location of Objects.
equals() -> Compares values of Objects
(Although, if you make your own equals() method it could really do anything).
+ 5
@Gaurav
Generally you wouldn't use == for decimals. đ
(Due to inaccuracy of floating point numbers)
+ 1
no problem Gaurav u have to learn more but sorry to say Ur answer is wrong