object
Hi what really is object type ? I have seen only int, char and so on...but never Object type...what really is it ?I have seen some functions likefunction (Object a){}what is Object type over here ? and when to use such types ?
[276 byte] By [
Sangfroida] at [2007-11-27 1:23:12]

int, double, char, float... are "primitive" in Java.Object instances, LinkedList instances, HashMap instances... are "objects" in Java.And you can certainly create Object objects, like this:Object x = new Object();
Object is not a data type. The data types are primitives (int, double, etc.), reference types, and the null type.
References types are references, or "pointers", to objects. Part of what makes up an object is its class. "Object" is one of those classes. The objects and classes themselves are not types, however.