• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Memory distrubution in JAVA

 
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have some question on Memory distrubution in JAVA.

1) How does Java distribute the memory.
2) Only HEAP memory is used or some other memory is required by JAVA.
3) As far as I know that Heap area is used by JVM to allocate the memory to objects. Does heap is used for other purpose?
4) What is the Heap internal architecture?

Please suggest any URL.

Thanks
Vijay
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm going to tell you what I know about memory distribution, perhaps this one gives you an idea where to search more information.

There are two kinds of memory even three.

The first one is the Heap, where JVM creates objects as you know.
The second one is the stack, where JVM keeps the method's call and local variables.
The third is the String pool that Java uses to stock the immutable String objects.

I don't think that the heap is used for other purposes that creating objects (assigning memory to them).
You can try to find more information in the Java specification. You can download this specification in the sun's site.

I hope this could help you a little.

JackBorton
reply
    Bookmark Topic Watch Topic
  • New Topic