Is null a class in java?

Posted by Somerandomeguy on Stack Overflow See other posts from Stack Overflow or by Somerandomeguy
Published on 2010-04-07T06:09:00Z Indexed on 2010/04/07 6:13 UTC
Read the original article Hit count: 195

Filed under:
|

According to, http://www.freshvanilla.org:8080/display/www/Java+Interview+Questions

Under,

Which class is the superclass of every class?

null seems to be the answer.

I found that

 new Object().getClass().getSuperClass()

verifies the answer as correct. But can null be considered a class? I see all primitive data types are represented as Class objects from java[dot]sun.com/j2se/1.4.2/docs/api/java/lang/Class.html

© Stack Overflow or respective owner

Related posts about java

Related posts about null