Object creation on the stack/heap?
Actually, neither statement says anything about heap or stack. The code Object o; creates one of the following, depending on its context: a local variable with automatic storage, a static variable at namespace or file scope, a member variable that designates the subobject of another object. This means that the storage location is determined by … Read more