Java Object class

Posted by SHiNKiROU on Stack Overflow See other posts from Stack Overflow or by SHiNKiROU
Published on 2010-04-24T20:48:26Z Indexed on 2010/04/24 20:53 UTC
Read the original article Hit count: 312

Filed under:

I have a weird Java question:

As we know:

  1. All Java classes extend java.lang.Object
  2. All Java classes cannot extend itself

Then, java.lang.Object must extend java.lang.Object, which is itself, therefore, it should be impossible. How is Object implemented in Java?

© Stack Overflow or respective owner

Related posts about java