강의

멘토링

커뮤니티

Inflearn Community Q&A

sahngju's profile image
sahngju

asked

Effective Java Complete Guide Part 2

Item 31. Key Points - Wildcard Usage Tips

아이템31 비한정적와일드카드

Written on

·

364

1

안녕하세요,

저번 1탄과 이번의 강의는 정말 유용하게 잘 듣고 있습니다.

제가 알기로는 List<? extends T> aaa 와 같이 사용할 경우, aaa에 할당되는 값이 T의 list 일수도 T의 자손의 list일 수도 있어서. 말씀하신 대로 추가하거나 변경하는게 안되는 걸로 알고 있습니다.

<?>의 경우 <? extends Object> 로 봐도 된다고 본적이 있는 것 같습니다. 그럼 이 때에도 extends 로 인해 변경하지 못하는 것으로 생각 해도 될까요?

 

java

Answer

This question is waiting for answers
Be the first to answer!
sahngju's profile image
sahngju

asked

Ask a question