---
title: "Discussion on \"[Java] Difference between Logical Operators &, &&, |, ||\" | Hashnode"
description: "Discussion on \"[Java] Difference between Logical Operators &, &&, |, ||\". Logical operators include\n\nLogical OR |, ||\nLogical AND &, &&\nLogical eXclusive OR ^\n\nBut why Logical OR and Logical AND has two different operators? What difference between | and ||? What difference between & and &&?\n如果你想閱讀中文版本，請點 這裡 。\n| and || both..."
url: "https://hashnode.com/posts/java-difference-between-logical-operators-and-and-or-or/5ee9728589a6447679175525"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [\[Java\] Difference between Logical Operators &, &&, |, ||](https://zhaochen.hashnode.dev/java-difference-between-logical-operators-and-and-or-or?utm_source=hashnode&utm_medium=feed)

Logical operators include Logical OR |, || Logical AND &, && Logical eXclusive OR ^ But why Logical OR and Logical AND has two different operators? What difference between | and ||? What difference between & and &&? 如果你想閱讀中文版本，請點 這裡 。 | and || both...

Jun 17, 2020 · zhaochen.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)

## Written by

[Zhao Chen](https://hashnode.com/@zhaochen)

@zhaochen

  
[View profile](https://hashnode.com/@zhaochen)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
