1. Variable 종류?

  1. Class Variable[클래스 변수]
    1. Location[Class 영역]
    2. 생성시기[Class가 Memory에 올라갈 때]
    3. Memory[Method영역]
  2. Instance Variable[인스턴스 변수]
    1. Location[Class 영역]
    2. 생성시기[Instance가 생성되었을 때]
    3. Memory[Heap영역]
  3. Local Variable[지역 변수]
    1. Location[Class 영역 이외의 영역]
      1. Method(메소드)
      2. Constructor(생성자)
      3. Inside the initialization block(초기화 블록 내부)
    2. 생성시기[Variable 선언문이 수행되었을 때]
    3. Memory[Heap영역]

2. Class Variable?

3. Instance Variable?

4. Local Variable?