μλ°μμ μ°μ°μ(Operators)λ νλ‘κ·Έλ¨μμ λ³μλ κ°λ€ κ°μ μνλλ λμμ λνλ λλ€. μ°μ°μλ νΉμ ν μ°μ°μ μννκ±°λ κ°μ μ‘°μνλ λ° μ¬μ©λ©λλ€.
μ°μ°μλ νΌμ°μ°μ(Operands)λΌ λΆλ¦¬λ νλ μ΄μμ κ°μ νμλ‘ νλ©°, νΌμ°μ°μμ μ°μ°μ κ°μ μ‘°ν©μΌλ‘ ννμμ νμ±ν©λλ€.
μ°μ°μμ μ¬λ¬κ°μ§ μ’ λ₯
1. μ¦κ° μ°μ°μ (Increment, Decrement Operators)
μ¦κ° λ° κ°μ μ°μ°μλ λ°λ³΅λ¬Έμμ μμ£Ό μ¬μ©λλ©°, λ³μμ κ°μ μ¦κ°μν€κ±°λ κ°μμν¬ λ νΈλ¦¬νκ² νμ©ν μ μμ΅λλ€. κ·Έλ¬λ μ¬μ©ν λ μ£Όμκ° νμνλ©°, νΉν λ€λ₯Έ μ°μ°μμ ν¨κ» μ¬μ©λ λ μ°μ μμμ μ£Όμν΄μΌ ν©λλ€.
2. μ°μ μ°μ°μ (Arithmetic Operators)
3. λΉκ΅ μ°μ°μ (Comparison Operators)
4. λ Όλ¦¬ μ°μ°μ (Logical Operators)
5. λμ μ°μ°μ (Assignment Operators)
6. μΌν μ°μ°μ (Ternary Operator)
An operation refers to a specific action or calculation performed on data.
Increment and Decrement Operators: Increase or decrease the value of a variable.
Arithmetic Operators: Perform mathematical operations such as addition, subtraction, multiplication, division, and remainder.
Comparison Operators: Perform comparisons between values, and the result is either true or false.
Logical Operators: Execute logical operations, commonly used in conditional statements to determine the truth or falsehood of conditions.
Assignment Operators: Used to assign values to variables and return the assigned value.
Ternary Operator: Takes three operands and returns a value based on a condition.
'Programming > Java' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
6 for loop (feat. Nested, foreach) (0) | 2024.01.07 |
---|---|
5 If & Switch (feat. break, continue) (0) | 2024.01.07 |
3 Casting (0) | 2023.12.29 |
2 Variable, Constant and Primitive Type in Java (Feat. Literal) (0) | 2023.12.29 |
1 JVM, JRE, JDK (0) | 2023.12.28 |
λκΈ