Main difference.
More details.
Stack: Stack is stored in computer RAM. As mentioned above, variables and function uses stack, memory allocation to variables is much faster compare to heap. Date that created in stack can be used without pointers.
Heap: Heap is also stored in computer RAM just like Stack. As mentioned above it is used to store object, but memory allocation to variables is slower compare to stack.