Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main
- {
- public static void main(String[] args)
- {
- System.out.println("foo" == "foo"); // true
- String a = new String("foo");
- String b = new String("foo");
- System.out.println(a == b); // false
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement