aspose file tools*
The moose likes Beginning Java and the fly likes Heap and Stack Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Heap and Stack" Watch "Heap and Stack" New topic
Author

Heap and Stack

Mulugeta Maru
Ranch Hand

Joined: Jan 20, 2003
Posts: 68
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

Joined: Dec 10, 2001
Posts: 7023
Take a look at what Cindy had to say over in The Intermediate Forum.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Heap and Stack