query: Why do locally declared primitives goes to the stack while locally defined objects goes to the heap?
positive_passages.docid: 3740
positive_passages.text: What and where are the stack and heap?
negative_passages.docid: 72446
negative_passages.text: Why are Stack and Queue implemented with an array?
negative_passages.docid: 8782
negative_passages.text: What is the 'correct' way to store a native pointer inside a Java object?
negative_passages.docid: 46241
negative_passages.text: Stack, Static, and Heap in C++
negative_passages.docid: 115252
negative_passages.text: How do I pass a primitive data type by reference?
negative_passages.docid: 97624
negative_passages.text: In what order do static/instance initializer blocks in Java run?
negative_passages.docid: 91999
negative_passages.text: C++: Why pass-by-value is generally more efficient than pass-by-reference for built-in (i.e., C-like) types
negative_passages.docid: 17357
negative_passages.text: Java heap terminology: young, old and permanent generations?
negative_passages.docid: 43670
negative_passages.text: malloc() vs. HeapAlloc()
negative_passages.docid: 83432
negative_passages.text: Order of local variable allocation on the stack
negative_passages.docid: 115589
negative_passages.text: Does std::stack expose iterators?
negative_passages.docid: 112198
negative_passages.text: Global Variables vs. Local Variables
negative_passages.docid: 24493
negative_passages.text: Why do people still use primitive types in Java?
negative_passages.docid: 74336
negative_passages.text: String literals inside functions: automatic variables or allocated in heap?
negative_passages.docid: 119513
negative_passages.text: What is the role of the data types inside of  in Java?
negative_passages.docid: 113622
negative_passages.text: Why does a large local array crash my program, but a global one doesn't?
negative_passages.docid: 28204
negative_passages.text: Do STL maps initialize primitive types on insert?