public class Student {
public static void main(String[] args) {
int x = 10;
int y = 10;
System.out.println(x == y);
Student s1 = new Student();
Student s2 = new Student();
Student s3 = s1;
System.out.println(s1 == s2);
System.out.println(s1 == s3);
}}
|
|