🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18250

VM question

#18250
From: Fabrice Pati
Date: Wed, 22 Jul 1998 00:00
16 lines
741 bytes
Just a little question concerning Java and how objects are allocated in
memory:

What happen with the snippet:

"MyClass A = new MyClass();
MyClass B;

B = A;"

Is B instantiated as if a "new myClass()" has occured ?
or does the JVM just do a pointer copy ?

Sorry for the newby question

Fab
Technical Details
Message-ID: <6p4on7$m8o7@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,1c3452b381a72b96,start
X-Google-Attributes: gidf74b3,public
From: "Fabrice Pati" <fpati@orli.fr>
Subject: VM question
Date: 1998/07/22
Message-ID: <6p4on7$m8o7@forums.borland.com>
X-Deja-AN: 373832157
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Newsgroups: borland.public.jbuilder.java.language