Skip to content

Instantly share code, notes, and snippets.

@eginter
Created June 8, 2016 22:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eginter/a128d8560d08f40d99848a8beb4038f7 to your computer and use it in GitHub Desktop.
Save eginter/a128d8560d08f40d99848a8beb4038f7 to your computer and use it in GitHub Desktop.
String s1 = "aaa";
String s2 = s1;
if(s1 == s2)
System.out.println("s1 == s2 is TRUE");
else
System.out.println("s1 == s2 is FALSE");
Output:
s1 == s2 is TRUE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment