스택(Stack)
- 밑이 막힌 상자. 위에 차곡차곡 쌓인다.
- 메서드 수행에 필요한 메모리가 제공되는 공간
- 메서드가 호출되면 호출스택에 메모리 할당, 종료되면 해제



- 3번을 2번과 1번 사이에 넣는 행위는 불가능하다.
- 1번을 먼저 꺼내는 행위 또한 불가능하다.
Example
class Ex6_5 {
public static void main(String[] args) {
System.out.println("Hello);
}

- 아래에 있는 메서드가 위의 메서드를 호출한 것.


- 맨 위의 메서드 하나만 실행 중, 나머지는 메서드들은 대기중이다.
- Thread 전까지는 싱글스택이다.
References
