Results 1 to 2 of 2
  1. #1
    coco is offline Member
    Join Date
    Jul 2007
    Posts
    39
    Rep Power
    0

    Default Help with heap and stack

    Hi, What is meaning of creating an object in the heap? and in the stack?
    Thanks.

  2. #2
    henry_78 is offline Member
    Join Date
    Aug 2007
    Posts
    47
    Rep Power
    0

    Default Stack and Heap

    Hi,
    The stack is the portion of memory where at run time ,when a method is invocked, memory is allocated for the local varaiables of the invocked method.
    So we can see it as a dynamic memory because its allocated at runtime.
    Heap is the portion of memory that is allocated at the begin of an applications and it remaines till the application terminates..so we can see it as a ststic memory.
    Bye.

Similar Threads

  1. JVm Heap memory settings
    By nagesh in forum Advanced Java
    Replies: 2
    Last Post: 09-17-2009, 05:47 PM
  2. Heap Sorting
    By kesav2005 in forum New To Java
    Replies: 1
    Last Post: 11-13-2007, 04:04 PM
  3. Heap Sort
    By kesav2005 in forum Advanced Java
    Replies: 1
    Last Post: 11-13-2007, 11:40 AM
  4. when objects are removed from heap
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-09-2007, 04:25 PM
  5. setting JVM Heap sitze
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-09-2007, 04:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •