For Programmers: Free Programming Magazines  


Home > Archive > Java Help > January 2006 > Help Regarding Difference Between Object & Instacne









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Help Regarding Difference Between Object & Instacne
kansagaramilind01@gmail.com

2006-01-29, 3:57 am

hello hi how r u?

i need help regarding the difference Between Object &
Instance In Java

Andrew McDonagh

2006-01-29, 3:57 am

kansagaramilind01@gmail.com wrote:
> 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

2006-01-29, 7:57 am

On 29 Jan 2006 01:41:28 -0800, kansagaramilind01@gmail.com wrote,
quoted or indirectly quoted someone who said :

>
> 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.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Noodles Jefferson

2006-01-29, 7:01 pm

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.

--
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.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com