동적할당1 6. static 정적 자바 메모리 구조 프로세스의 메모리 구조를 설명할 때 코드, 데이터, 힙, 스택 영역이 있다는 설명을 많이 들었다. 자바에서도 유사한데, 데이터 영역을 메서드 영역이라고 칭한다. (그냥 같다 생각하면 됨) CODE AREA 프로그램의 코드가 저장되는 영역(read-only) 프로그램이 실행될 때 메모리의 하단에서부터 적재된다. METHOD (CLASS) AREA static 이해를 위해 중요한 영역 프로그램의 실행에 필요한 공통 데이터를 관리하는 영역으로, 세부적으로는 아래와 같은 영역이 있다. 1. 클래스 정보(Class Information) 클래스의 실행을 위해 필요한 바이트코드(for jvm에 의한 클래스 로딩)가 저장되는 영역 클래스의 이름, 상위 클래스 및 인터페이스, 멤버 변수 및 메서드 정.. 2024. 3. 7. 이전 1 다음