The difference between heap and stack?

Users questions:The difference between heap and stack?
Experts answer: When a method execution time, will be available from a "stack" (stack) memory field for it affirms that all variables, until the end! The characters pass does not exist in the stack. Program from the "heap" (heap) memory area to allocate memory for the characters pass! heap is a shared storage area!
  • This information provided by the users.Thanks!