--- id: java-list title: "Java List" category: "Programming_Language" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["List interface", "자바 리스트"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.88 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["java", "programming", "w3schools", "collections-framework", "list"] raw_sources: ["https://www.w3schools.com/java/java_list.asp"] applied_in: [] github_commit: "" --- # [[Java List]] ## 🎯 한 줄 통찰 (One-line insight) `List` is an interface, so `new List()` is impossible — you must always instantiate a CONCRETE implementer like `ArrayList` or `LinkedList`, a distinction that mirrors the abstract-class rule from the OOP section (cannot instantiate the abstraction itself). [S1] ## 🧠 핵심 개념 (Core concepts) - **`List` interface** — ordered collection; supports index access, duplicates, and preserves insertion order. [S1] - **Cannot instantiate directly** — must use an implementing class: `ArrayList` (resizable array, fast random access) or `LinkedList` (linked container chain, easy insert/remove). [S1] - **Common methods** — `add()`, `get()`, `set()`, `remove()`, `size()`. [S1] - **List vs. plain array** — array is fixed-size and not part of the Collections Framework; List implementations are dynamic-size and part of the framework. [S1] ## 📖 세부 내용 (Details) - Method table: `add()` (append), `get()` (read by index), `set()` (replace by index), `remove()` (delete by index), `size()` (count). [S1] - Comparison table: Array (fixed size, faster raw performance, not in Collections Framework) vs. List (dynamic size, more flexible/feature-rich, part of Collections Framework). [S1] ## ⚖️ 모순 및 업데이트 (Contradictions & updates) 소스에서 모순되는 정보는 발견되지 않음. ## 🛠️ 적용 사례 (Applied in summary) 현재 발견된 실제 적용 사례가 없습니다 — 순서와 중복을 허용해야 하는 데이터 저장에 List 인터페이스가 표준적으로 쓰인다. [S1] ## 💻 코드 패턴 (Code patterns) 해당 챕터는 개념/메서드표 중심으로 별도 실행 코드 예제가 없음 — 다음 챕터([[Java ArrayList]])에서 List 구현체 실습이 시작된다. ## ✅ 검증 상태 및 신뢰도 - **상태:** draft - **검증 단계:** conceptual - **출처 신뢰도:** B (W3Schools — widely used educational reference, not a primary standards body) - **신뢰 점수:** 0.88 - **중복 검사 결과:** 신규 생성 (New discovery) ## 🔗 지식 그래프 (Knowledge Graph) - **상위/루트:** [[Java Tutorial]] - **관련 개념:** [[Java Collections]], [[Java ArrayList]], [[Java LinkedList]] - **참조 맥락:** List 인터페이스의 기초 — ArrayList/LinkedList 구현체 챕터로 직접 이어짐. ## 📚 출처 (Sources) - [S1] W3Schools — Java List Interface — https://www.w3schools.com/java/java_list.asp ## 📝 변경 이력 (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "Java List Interface" page (Astra wiki-curation, P-Reinforce v3.1 format).