class A
{
int a=10,b=10,c=10;
}
class Equals
{
public static void main(String s[])
{
A a,b;
a=new A();
b=new A();
if(a.equals(b))
{
System.out.println("We r same...");
}
else
{
System.out.println("We r not same...");
}
}
}
Why is this code not printing output as we r same
?
I am not able to understand the logic behind this program.