This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes isinstanceOf/ equals Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "isinstanceOf/ equals" Watch "isinstanceOf/ equals" New topic

isinstanceOf/ equals

aakash bhatt
Ranch Hand

Joined: Jan 09, 2003
Posts: 182
Diff of isinstanceOf and equals method in Object
popoe shi

Joined: Sep 14, 2003
Posts: 10
isinstanceOf:check this object is belog to some class
equals:to compare the object value
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

instanceOf : Checks whether a class in an instance of a class or implememnts a interface.
equals : Checks whether an object equals another object as per the rules defined in the equals method.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: isinstanceOf/ equals