Mark the
word overloaded if you will call equals method like this in your MyRef. Your equals method from MyRef will be called. you can very well
test it.
1. public boolean equals(Object eqTest){
2.System.out.println("aa");
3.return (eqTest==this);
4.
5.}
//equals method from Object class
1. public boolean equals(Object obj) {
2.return (this == obj);
3. }
Correct me if i am wrong..