1. Primitive data types are created on heap whereas references are created on stack
  2. Primitive data types are created on stack whereas references are created on heap
  3. Both primitive data types and references are created on stack
  4. Both primitive data types and references are created on heap

Please give the correct answers

Sponsored Links