Are primitives objects?
int i = 3;
System.out.prin tln(i.getClass( ));
doesn't compile. Get an error message
"int can't be dereferenced"
But yet the docs for class Object say:
Class Object is the root of the class hierarchy. Every class has Object as
a superclass.
int i = 3;
System.out.prin tln(i.getClass( ));
doesn't compile. Get an error message
"int can't be dereferenced"
But yet the docs for class Object say:
Class Object is the root of the class hierarchy. Every class has Object as
a superclass.
Comment