This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Heap and Stack

 
Mulugeta Maru
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you please shade some light on these two terms � heap allocated and stack allocated. Here is a sentence I am not sure what it means �Variables defined as primitive boolean type default to false on declaration within a class (i.e. heap allocated), but must be explicitly initialized within methods (i.e. stack allocated).
Can some one explain what all this means?
 
Dirk Schreckmann
Sheriff
Posts: 7023
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic