In Java, which of the following statements is true regarding the memory allocation of objects? A) Objects
Fantastic news! We've Found the answer you've been seeking!
Question:
In Java, which of the following statements is true regarding the memory allocation of objects?
A) Objects are always allocated on the stack.
B) Objects are always allocated on the heap.
C) Objects are allocated on the stack if they are immutable, and on the heap if they are mutable.
D) Objects are allocated on the heap if they are primitive, and on the stack if they are non-primitive.
Related Book For
Auditing a risk based approach to conducting a quality audit
ISBN: 978-1133939153
9th edition
Authors: Karla Johnstone, Audrey Gramling, Larry Rittenberg
Posted Date: