Loading topic
-5, 0, and 42. A type says what kind of value a variable can hold. A variable is a named place to store a value.2 min readfloat and double. A primitive type is a basic Java type that holds a value directly.2 min readtrue or false. Use it for a question with a yes-or-no answer, such as “Does this person have a ticket?”2 min read3 is a whole-number literal, and true is a Boolean literal.2 min readfinal means you can assign a value to that variable only once. Assignment means giving a variable a value.2 min read