Unit_2_2_Java Expressions

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/15

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

16 Terms

1
New cards
Expression
A combination of one or more operators and operands.
2
New cards
Arithmetic Operators
Operators used to perform arithmetic calculations: addition (+), subtraction (-), multiplication (*), division (/), and remainder (%)
3
New cards
Operator Precedence
A set of rules that determines the order in which operators are evaluated in expressions.
4
New cards
Remainder Operator (%)
Returns the remainder after dividing the first operand by the second.
5
New cards
Increment Operator (++)
An operator that increases the value of a variable by one.
6
New cards
Decrement Operator (--)
An operator that decreases the value of a variable by one.
7
New cards
Assignment Operator (=)
An operator that assigns the value of the right-hand side expression to the variable on the left-hand side.
8
New cards
Casting
The process of converting one data type into another by explicitly specifying the type.
9
New cards
Data Conversion
The process of converting data from one type to another, like treating an integer as a floating-point value.
10
New cards
Widening Conversion
A safe conversion from a smaller data type to a larger data type.
11
New cards
Narrowing Conversion
A conversion from a larger data type to a smaller data type, which can lead to loss of information.
12
New cards
Scanner Class
A class in Java that is used to read input values of various types from different sources.
13
New cards
nextLine() Method
A method of the Scanner class that reads an entire line of text until the end of the line.
14
New cards
Tokens
Elements separated by white space in the input, such as spaces, tabs, and new line characters.
15
New cards
Promotion
Automatic conversion of one data type to another during operations, usually from a smaller to a larger type.
16
New cards
Assignment Conversion
Occurs when a value of one type is assigned to a variable of a different type, allowing only widening conversions.