Where storage lives 기억보조

  • Registers : fastest, inside the processor, allocated by the compiler
  • The stack : direct support from the processor via its stack pointer, extremely fast, ex)object reference(in RAM)
  • The heap : all java object live, there's price you pay for the flexibility, slower than stack(in RAM)
  • Static storage : in a fixed location, You can use the static keyword to specify that a particular element of an object is static, but java objects themselves are never placed in static storage.
  • Constant storage : placed directly in the program code, safe since they can never change, in ROM
  • Non-RAM storages : some data to be sent another medium or machine(ex. streamed objects, persistent objects)


댓글 입력 영역