You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In java, if we want to compare two string, such as A= 'abc' and B = 'abc', we should use: if(A.equals(B)){} . It return true or false. Notif(A == B) It return the whether the memory address is the same.
The text was updated successfully, but these errors were encountered:
In java, if we want to compare two string, such as A= 'abc' and B = 'abc', we should use:
if(A.equals(B)){}
. It returntrue
orfalse
.Not
if(A == B)
It return the whether the memory address is the same.The text was updated successfully, but these errors were encountered: