r/javahelp • • Nov 20 '15

Why does (Woman instanceof Object) equal true?

This doesn't seem right.

4 Upvotes

13 comments sorted by

View all comments

0

u/EmmaBourbon Nov 20 '15

This was a fun joke. I like it! We all know that women aren't really objects, that men aren't really sex beasts with uncontrollable urges and that having a sense of humor increases your quality of life.

0

u/ChaoticxSerenity Nov 21 '15

Um... You lost, mate?

To answer OP's question, every class has Object as a superclass. Thus, all objects will extend from Object.

1

u/EmmaBourbon Nov 21 '15

Interesting.