Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / January 2006

Tip: Looking for answers? Try searching our database.

Help Regarding Difference Between Object & Instacne

Thread view: 
kansagaramilind01@gmail.com - 29 Jan 2006 09:41 GMT
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.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.