java Operators Flashcards
—— in java are——- that carry out specific tasks using one, two, three inputs, called ———.
- Operators
- Special symbol
3.operands
After performing their tasks, these operators give back a —–. They are important because they allow you to perform various actions on ——– and —— in your program.
1.result
2. variables
3.values
Why do wee need Java operators?
- Perform Math Calculations
- Make Decisions
3.Manipulate Data - Simplify Code
Operators help carry out ———, which are crucial for any mathematical tasks in your program.
- Perform Mathematical calculations
- basic Mathematical calculations.
they allow the program to make ——- by comparing — and using ——–. This helps controls what the program is based on certain———
1.Make Decisions
2.decisiosns
3.values
4. logical operators
5. conditions
Operators can change —– at —— like – and —-, making data processing more ——-.
- Manipulate Data
- data
3.minimal levels
4.bits
5.bytes
6.efficient
Some operators, like —– and —— operators, make the code ——- and ——- by reducing———
1.Simplify Code
2.assignments
3.unary
4. easier to read
5.understand
6. complexity
Types of operators in Java
- Arithmetic Operators
- Relational operators
- Logical Operators
- Assignment Operators
- Conditional Operators
- Unary Operators
- Ternary Operators
———— are ——– or ——– that perform action on a ———, which can be a variable, a number, or an expression.
- Unary Operators
2.special symbols
3.keywords - single operand
Unary operators are special symbols or keywords that perform actions on a single operand, which can be a ——, a ———, or an ———. In, unary operators are ———-
1.variable
2.number
3.expression
4.essential
An —– is simply —- or —— that the operator works with
1.operand
2.value
3.expression
A has an ASCII
65
(-) -It is used to denote a negative value
Unary Minus
(+)- it is used to denote a positive value
Unary Plus
(–) Decrements value by 1
Decrement operator
(++) Increments value by 1
Increment operator
(!)- Reverse the value of boolean variable
Logical Compplement operators
Give the syntax of Unary plus
+(operand)
Give the syntax of Unary Minus
-(operand)
The increment operators is used in two forms
- Pre-increment operator (Prefix)
2.Post-increement operator (Postfix)
The pre-increment operator is used when the increment symbol is placed —– a variable
before
The post increment is used when the increment symbol is pplaced ——- a variable
after
The decrement operator is used in two forms
Pre- decrement (prefix)
Post-decrement(postfix)
Pre-decrement is used when the decrement symbol is placed —— a variable
before
Post decrement is used when the decrement symbol is placed- ——-
after
——— are nothing but mathematical operator, which are used to implement simple or advanced-level calculations —————– except ——-
1.Arithmetic operator
2.on all primitive data types
3.boolean
Types of arithmetic operators
- Binary operators
2.Unary Operators
a has an ASCII value of
97
0 has an ASCII value of
48
Relational operators in Java are ——–
Binary operators