Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test {
- public static void main(String[] d) {
- int x=3;
- int y=3;
- Test t1=new Test();
- Test t2=new Test();
- System.out.println(x==y); // true
- System.out.println(t1==t2); // false
- Test t3=t2;
- System.out.print(t3==t2); // true
- // System.out.println(x==t1); syntax error
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment