how to check two objects are equal or not?

usually we are using equal for strings,but can we use equal for checking whether any two objects are equal or not?
[135 byte] By [kir_kir@kir-kir.a] at [2007-11-27 4:17:45]
# 1
Try the New to Java Programming forum here: http://forum.java.sun.com/forum.jspa?forumID=54
AlexHudsa at 2007-7-12 9:24:25 > top of Java-index,Core,Core APIs...
# 2

> usually we are using equal for strings,but can

> we use equal for checking whether any two

> objects are equal or not?

What makes you think equals() is merely for Strings? It's not, it's a method declared on java.lang.Object. But as the other guy said, this isn't the right forum for the question

georgemca at 2007-7-12 9:24:25 > top of Java-index,Core,Core APIs...