Are primitives objects?

From: Fred (Fred_at_isp.com)
Date: 01/09/04


Date: Fri, 09 Jan 2004 07:09:34 GMT

Are primitives objects?

int i = 3;
System.out.println(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.