首页 > 试题广场 >

When you create a Java or

[单选题]

When you create a Java or C++ object by using “new”, and have a reference to point to the object. Please answer: (1) Where is the place the object itself lives in? (2) Where is the reference?()

  •  The Stack, The Heap. 

  • The Stack, Register.      

  • The Heap, Register.  

  •  The Heap, The Stack 

new 出来的对象在堆中,引用在栈中。
发表于 2020-01-16 20:08:12 回复(0)

热门推荐