일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- LeetCode
- 모던 자바스크립트 딥 다이브
- JDK
- 이냐
- SUM
- 할당
- 자바
- implements
- 비전공
- 딥다이브
- javascript
- 인가
- strict mode
- 파견
- Two
- 모던자바스크립트
- 로만
- 메모리
- 릿코드
- java
- integer
- 제네릭
- 부탁드립니다
- 직렬화
- 제너릭
- Roman
- jre
- JSON
- 빌트인객체
- JVM
- Today
- Total
목록java (2)
AnnSEo.log

긱포긱에서 컬렉션을 보고 있는데 https://www.geeksforgeeks.org/how-to-learn-java-collections-a-complete-guide/ How to Learn Java Collections - A Complete Guide - GeeksforGeeks A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions. www.geeksforgeeks.org 지금까..

단순 클래스 선언하면 heap 메모리에 할당되지 않고 reference만 생성된다. 이 생성된 reference는 힙 메모리에 생성될까?? 답은 context에 따라 다르다라고 한다. 만약 선언이 오브젝트의 한 부분이면 reference를 위한 공간이 필드를 포함한 나머지 오브젝트를 위한 공간과 함께 heap에 할당이 된다. 그렇지 않다면 그냥 reference가 JVM의 stack frame에 할당된다고 한다. 출처 https://stackoverflow.com/questions/32810120/jvm-allocates-memory-at-declaration-for-primitive-types-but-not-for-non-primiti JVM allocates memory at declaration f..