java-07: Memory division

java memory is divided into five parts

  1, the stack (stack): the method are stored in local variables

  2, the heap (heap): out of all new objects, which are in the heap, each object has a hexadecimal value is the address, which heap memory data has a default value,

  3, method area (method area): class related information is stored, the method comprising infos

  4, native method stacks

  5, the register

Guess you like

Origin www.cnblogs.com/BatmanY/p/11520236.html