+ 2
Difference between equals() and "==" operator?
4 Réponses
+ 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