You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
코드 32-1에 예시에 따르면 힙 오염이 발생한다고 하였습니다.
힙 오염(Heap pollution) : 매개변수화 타입의 변수가 타입이 다른 객체를 참조하는 경우 발생.
왜 힙 오염이라고 명칭을 정했을까요?
예시에는 List<String>[] 에 List<Integer>를 넣었는데, 이는 힙 영역에 의도와 다른 데이터가 들어가서 그런걸까요
코드 32-1에 예시에 따르면 힙 오염이 발생한다고 하였습니다.
힙 오염(Heap pollution) : 매개변수화 타입의 변수가 타입이 다른 객체를 참조하는 경우 발생.
왜 힙 오염이라고 명칭을 정했을까요?
예시에는
List<String>[]에List<Integer>를 넣었는데, 이는 힙 영역에 의도와 다른 데이터가 들어가서 그런걸까요