> 
> **Possible Duplicate:**  
> 
> [Overriding equals and hashCode in Java](https://stackoverflow.com/questions/27581/overriding-equals-and-hashcode-in-java) 
> 
> 
> 

If I have

```
class A {
    int x = 1;
}
...
A a1 = new A();
A a2 = new A();
a1.equals(a2);

```

If I compare 2 instances of A without override the equals method, will I get expected result?