Java Values, types, and operators

0.0(0)
Studied by 1 person
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/30

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:18 PM on 9/27/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

31 Terms

1
New cards

Value

A piece of info used by a program. Every Java value has a type

2
New cards

Type

defines what kind of data a value represents and what operations can be performed on it

3
New cards

Primitive Type

A basic Java type defined by a keyword, such as int, double, char or boolean

4
New cards

Non-primitive type

A type that is not a primitive type, such as String or an array

5
New cards

int

a whole number storing using 32 bits

6
New cards

double

a number that can include a decimal place and is stored using 64 bits

7
New cards

char

one character written with a single quotation marks, such as 'a'

8
New cards

boolean

a value that is either true or false

9
New cards

String

a sequence of characters or text written with double quotation marks, such as "hello"

10
New cards

integer division

Division between two integers that removes the decimal. for example 5 / 2 is 2

11
New cards

Modulus %

returns the remainder from division

12
New cards

String Concatenation

Joining Strings or values together using +

13
New cards

Operator precedence

The order in which Java performs operations

14
New cards

parentheses

Can be used to change the order in which operations are performed

15
New cards

+

Addition or String concatenation

16
New cards

%

remainder after division

17
New cards

=

Assigns a value to a variable

18
New cards

+=

adds a value and stores the new result in the variable

19
New cards

-=

subtracts a value and stores the new result

20
New cards

*=

Multiplies and stores the new result

21
New cards

/=

divides and stores the new result

22
New cards

%=

Finds the remainder and stores the new result

23
New cards

++

Increase a variable by 1

24
New cards

--

Decreases a variable by 1

25
New cards

==

Checks whether two values are equal

26
New cards

!=

Checks whether two values are not equal

27
New cards

>=

Checks whether the left value is greater than or equal to the right value

28
New cards



29
New cards

&&

AND: true only when both conditions are true

30
New cards

| |

OR: true when at least one condition is true

31
New cards

!

NOT: changes true to false or false to true