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]
# 1
http://java.sun.com/docs/books/tutorial/java/concepts/index.html
DrLaszloJamfa at 2007-7-12 0:11:38 > top of Java-index,Java Essentials,New To Java...
# 2
but they dont have explicitly data type of Object in it ...do they ? http://java.sun.com/docs/books/tutorial/java/nutsandbolts/datatypes.html
Sangfroida at 2007-7-12 0:11:38 > top of Java-index,Java Essentials,New To Java...
# 3
http://java.sun.com/javase/6/docs/api/java/lang/Object.html
DrLaszloJamfa at 2007-7-12 0:11:38 > top of Java-index,Java Essentials,New To Java...
# 4
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();
KathyMcDonnella at 2007-7-12 0:11:38 > top of Java-index,Java Essentials,New To Java...
# 5

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.

jverda at 2007-7-12 0:11:38 > top of Java-index,Java Essentials,New To Java...