hello hi how r u?
i need help regarding the difference Between Object &
Instance In Java
Andrew McDonagh - 29 Jan 2006 09:56 GMT
> hello hi how r u?
>
> i need help regarding the difference Between Object &
> Instance In Java
an instance is an object.
we create an instance of a Class.
e.g.
ArrayList myList = new ArrayList();
Here we are creating an instance of the ArrayList class, and keeping a
reference to it in the 'myList' variable.
Roedy Green - 29 Jan 2006 11:59 GMT
> i need help regarding the difference Between Object &
>Instance In Java
they are two different names of the same thing. With instance you
emphasising that the object was created from a class and that classes
are sort of like cookie cutters to stomp out nearly identical objects.
You might say that Dog object there is an instance of class Dog.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Noodles Jefferson - 29 Jan 2006 20:02 GMT
In article <1138527688.142514.43610@g49g2000cwa.googlegroups.com>,
kansagaramilind01@gmail.com took the hamburger, threw it on the grill,
and I said "Oh wow"...
> hello hi how r u?
>
> i need help regarding the difference Between Object &
> Instance In Java
An object is an instance of a class.

Signature
Noodles Jefferson
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM
NP: "Crazy On You" -- Heart
"Our earth is degenerate in these latter days, bribery and corruption
are common, children no longer obey their parents and the end of the
world is evidently approaching."
--Assyrian clay tablet 2800 B.C.