---
title: "Discussion on \"Logic Gate Truth Tables & Definitions\" | Hashnode"
description: "Discussion on \"Logic Gate Truth Tables & Definitions\". Logic Gate Truth Tables\n\nJava Code\n!A // NOT\nA&B // AND\n~(A&B) // NAND\nA|B // OR\n~(A|B) // XOR\nA^B // XOR\n~(A^B) // XNOR\n~A // Inverts 0 to 1 and 1 to 0\n\nA << 1  // Shift A's bits 1 position to the left. (Empty positions are filled with 0)\nA >> 1  //..."
url: "https://hashnode.com/posts/logic-gate-truth-tables-definitions/6537e49e0adca00d76856e03"
---

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

Discussion

# [Logic Gate Truth Tables & Definitions](https://eunhanlee.hashnode.dev/logic-gate-truth-tables-definitions?utm_source=hashnode&utm_medium=feed)

Logic Gate Truth Tables Java Code !A // NOT A&B // AND ~(A&B) // NAND A|B // OR ~(A|B) // XOR A^B // XOR ~(A^B) // XNOR ~A // Inverts 0 to 1 and 1 to 0 A << 1 // Shift A's bits 1 position to the left. (Empty positions are filled with 0) A >> 1 //...

Oct 24, 2023 · 1 min read · eunhanlee.hashnode.dev  
Read the article

-   [#truth-table](https://hashnode.com/tag/truth-table)
-   [#not-gate-and-gate-nand-gate-or-gate-nor-gate-xor-gate-xnor-gate](https://hashnode.com/tag/not-gate-and-gate-nand-gate-or-gate-nor-gate-xor-gate-xnor-gate)

## Written by

[Han](https://hashnode.com/@EunHaSu)

@EunHaSu · VA, US

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

Java, Android, Algorithm

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
