--- id: java-operators-comparison title: "Java Operators Comparison" category: "Programming_Language" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["자바 비교 연산자"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.9 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["java", "programming", "w3schools", "operators", "comparison"] raw_sources: ["https://www.w3schools.com/java/java_operators_comparison.asp"] applied_in: [] github_commit: "" --- # [[Java Operators Comparison]] ## 🎯 한 줄 통찰 (One-line insight) Comparison operators always resolve to a boolean, which is exactly what If...Else and loop conditions consume — comparisons are the bridge between raw values and program control flow. [S1] ## 🧠 핵심 개념 (Core concepts) - **Comparison operators** — `==`, `!=`, `>`, `<`, `>=`, `<=`; return true or false. [S1] - **Purpose** — help programs find answers and make decisions. [S1] ## 📖 세부 내용 (Details) - Basic comparison: `int x = 5; int y = 3; System.out.println(x > y); // true`. [S1] - Voting age check: `int age = 18; System.out.println(age >= 18); // true`. [S1] - Password length check: `int passwordLength = 5; System.out.println(passwordLength >= 8); // false`. [S1] ## ⚖️ 모순 및 업데이트 (Contradictions & updates) 소스에서 모순되는 정보는 발견되지 않음. ## 🛠️ 적용 사례 (Applied in summary) 현재 발견된 실제 적용 사례가 없습니다 — 투표 연령/비밀번호 길이 검증처럼 실전 조건 검사의 기초 도구다. [S1] ## 💻 코드 패턴 (Code patterns) Real-world condition checks (Java): ```java int age = 18; System.out.println(age >= 18); // true, old enough to vote int passwordLength = 5; System.out.println(passwordLength >= 8); // false, too short ``` ## ✅ 검증 상태 및 신뢰도 - **상태:** draft - **검증 단계:** conceptual - **출처 신뢰도:** B (W3Schools — widely used educational reference, not a primary standards body) - **신뢰 점수:** 0.90 - **중복 검사 결과:** 신규 생성 (New discovery) ## 🔗 지식 그래프 (Knowledge Graph) - **상위/루트:** [[Java Tutorial]] - **관련 개념:** [[Java Booleans Type]], [[Java If Else]], [[Java Operators Logical]] - **참조 맥락:** 조건문/반복문의 조건식을 구성하는 기초 연산자. ## 📚 출처 (Sources) - [S1] W3Schools — Java Comparison Operators — https://www.w3schools.com/java/java_operators_comparison.asp ## 📝 변경 이력 (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "Java Comparison Operators" page (Astra wiki-curation, P-Reinforce v3.1 format).