Results 1 to 3 of 3

Thread: Instance of Object

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Geek_Guest
    Guest

    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


  2. #2
    Junior Member
    Join Date
    Sep 2007
    Answers
    7

    Thumbs up 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.

  3. #3
    Junior Member
    Join Date
    Jan 2007
    Answers
    22

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact