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
확인해보니 myList를 Iterator로 업캐스팅하고 있기 때문에 마치 Iterator 타입의 디폴트 메서드를 호출할 거 같지만 JVM에서 호출하는 포인터 순서는 최하위 구현체부터 호출을 하네요! 포인터 경로를 따라 호출하면서 동일한 메서드 Override가 있으면 그걸 우선적으로 사용하는 거 같습니다!
Iterator.remove()에는 예외를 던지는 구현부만 존재하는데 어떻게 remove가 작동하는 건가요?
아래는 예시 코드입니다.
The text was updated successfully, but these errors were encountered: