What is the difference between a heap and a stack?

  • The stack contains stored value types; the heap contains stored reference types.
  • The heap is stored value types; the stack is stored reference types.
  • The heap is stored object types; the stack is stored class types.
  • The stack is stored object types; the heap is stored class types.
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment

Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend