--- id: java-statements title: "Java Statements" category: "Programming_Language" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["μžλ°” λ¬Έμž₯"] 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", "statements"] raw_sources: ["https://www.w3schools.com/java/java_statements.asp"] applied_in: [] github_commit: "" --- # [[Java Statements]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) Unlike Python's optional semicolons, a Java statement MUST end with `;` β€” omitting it is a hard compile error (`error: ';' expected`), not just a style violation. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **Statement** β€” a programming instruction executed by the computer. [S1] - **Semicolon required** β€” every Java statement must end with `;`. [S1] - **Missing semicolon = compile error** β€” `error: ';' expected`. [S1] - **Sequential execution** β€” multiple statements execute one by one in written order. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) - Basic statement: `System.out.println("Java is fun!");`. [S1] - Missing semicolon error: `System.out.println("Java is fun!")` β†’ `error: ';' expected`. [S1] - Sequential statements: three `System.out.println(...)` calls execute top to bottom. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) μ†ŒμŠ€μ—μ„œ λͺ¨μˆœλ˜λŠ” μ •λ³΄λŠ” λ°œκ²¬λ˜μ§€ μ•ŠμŒ. ## πŸ› οΈ 적용 사둀 (Applied in summary) ν˜„μž¬ 발견된 μ‹€μ œ 적용 사둀가 μ—†μŠ΅λ‹ˆλ‹€ β€” Pythonκ³Ό 달리 μ„Έλ―Έμ½œλ‘ μ΄ 선택이 μ•„λ‹Œ ν•„μˆ˜λΌλŠ” 점이 Java 문법 μ „μ²΄μ˜ 기초 κ·œμΉ™μ΄λ‹€. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Sequential statements requiring semicolons (Java): ```java System.out.println("Hello World!"); System.out.println("Have a good day!"); System.out.println("Learning Java is fun!"); ``` ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.88 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[Java Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[Java Syntax]], [[Java Output]] - **μ°Έμ‘° λ§₯락:** μ„Έλ―Έμ½œλ‘ μ΄ ν•„μˆ˜λΌλŠ” Java λ¬Έμž₯ μ’…λ£Œ κ·œμΉ™. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” Java Statements β€” https://www.w3schools.com/java/java_statements.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "Java Statements" page (Astra wiki-curation, P-Reinforce v3.1 format).