Hi,

Heap is a part of RAM.

Check this:

http://wiki.answers.com/Q/Whether_java_heap_exist_in_hard_disk_or_ram

                \\\///
             /         \
             | \\   // |
           ( | (.) (.) |)
----------o00o--(_)--o00o-------------------
Stand up,be bold,be strong.
Take the whole responsibility on
ur own shoulders and know that
U are the creator of ur own destiny.
------ooo0-------------------------------------
   (   )     0ooo
    \ (      (   )
     \_)      ) /
             (_/


On Thu, Jul 30, 2009 at 3:23 PM, Diogo Sales Oliveira <[email protected]
> wrote:

>
> Hi there,
>
> I hope I'm wrong on this, but I think that:
>
> 1) Memory allocation is a runtime task. By default, the JVM does nothing
> in compile time about choosing memory addresses or such.
>
> 2) Since everything is ran from inside a Virtual Machine, consider only
> the Java heap space. Of course at somne point the stack will be used,
> but I don't think that's transparent to the user, neither is should be.
>
> 3) Heap is virtual memory, hence inside Java Virtual Machine.
>
> Remember I'm no guru, and I might as well not be fully right on all this
> :-P
>
> Hugs
>
> JKid314159 wrote:
> > Dear Java Programmer:
> >
> > 1) In instantiating a static member, such as a class or variable,
> > means this member will be compiled and a memory address put aside for
> > it and then be placed in memory at runtime?
> >
> > 2) This memory place will be in the heap or the stack?
> >
> > 3) Heap is inside the compiler or in ROM memory?
> >
> > Respects,
> >
> > JKid314159
> > http://groups.google.com/group/existentialist-reading-circle?hl=en
> >
> >
> >
> > >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to