It's not a secret anymore!
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

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Heap and Stack" Watch "Heap and Stack" New topic

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

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]
Have you checked out Aspose?
subject: Heap and Stack
It's not a secret anymore!