-
Instance of Object
When an object is created where does it get stored heap or memory?
if objects are not created but instances are created how much memory is allocated? and can we create instance of an object without creating objects?
Question asked by visitor sneha
-
Junior Member
Re: Instance of Object
Hi,
Objects are always getting created in Heap.
Object class has got a public constructor. So you can create an object of Object class.
Object o = new Object();
Last edited by admin; 10-23-2007 at 04:35 AM.
-
Junior Member
Re: Instance of Object
hmmm .. instances and objects are actully one and the same thing..
and yeah they are created in the heap , how much size is allocated it doest matter as you cant' control it ..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules