ronreiter / interactive-tutorials

Interactive Tutorials
Apache License 2.0
4.01k stars 2.55k forks source link

In variable and types typo #725

Closed Leo-MathGuy closed 1 year ago

Leo-MathGuy commented 1 year ago

boolean (true or false, 1 byte)

A boolean stores one bit not one byte

geple commented 1 year ago

Technically a boolean could be represented by one bit. However, in Java and most languages the smallest assignable chunk of memory is one byte, so the size of a boolean in Java is indeed one byte.

Leo-MathGuy commented 1 year ago

k