Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String s1 = "String";
- String s2 = new String("String");
- String s3 = "String";
- System.out.println(s1 == s2);
- System.out.println(s1 == "String");
- System.out.println(s1 == s3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement