+ 1
What is the main defference ?
what is the main defference between "equals" and "==" operators in a string in java ?
1 Resposta
+ 6
== compares string instances for equality
equals() compares values of string instances for equality
what is the main defference between "equals" and "==" operators in a string in java ?