Skip to content

Commit bbc8891

Browse files
committed
docs: 원시타입과 참조타입의 차이 정리
1 parent 6233806 commit bbc8891

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,8 @@
639639
<details>
640640
<summary>원시타입과 참조타입의 차이에 대해 설명해주세요.</summary>
641641
</br>
642-
<p></p>
642+
<p>원시타입은 Java에서 단 8개 밖에 존재하지 않는 타입입니다. 나머지는 모두 참조타입이라고 볼 수 있고, Object 클래스이거나 이를 상속하는 클래스들로 이루어져 있습니다.</p>
643+
<p>원시타입은 항상 값이 존재해야 합니다. 반면, Object 타입은 null 포인터를 가질 수 있습니다. 그리고 멤버변수가 초기화될 때, 원시타입은 기본값을 가지지만, 참조타입은 null 포인터를 가지는 차이도 있습니다.</p>
643644
</details>
644645

645646
<details>

0 commit comments

Comments
 (0)