Is null a class in java?
- by Somerandomeguy
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