/ W3SCHOOLS

W3schools - Operator

이 페이지는 다음에 대한 공부 기록입니다
Lecture에서 배웠던 내용을 복습하며 작성했습니다

찾으시는 정보가 있으시다면
주제별reference를 이용하시거나
우측 상단에 있는 검색기능을 이용해주세요

Java operators

  • divides the operators into the following groups

    • Arithmetic, Comparison, Assignment, Logical, Bitwise

Arithmetic operator

Addition + Subtraction - Multiplication * Division /

Modulus % : Returns the division remainder

Increment ++ : Increase the value of a variable by 1

decrement – : decrease the value of a variable by 1

Assignment operator

(=) assign the value to variable

  • += -= *= /= %=

calculate a value to variable

  • &= = ^= »= «= about bitwise, learn later

Java comparison operator

Equal == Not equal != Greater than >

less than < and or equal >=, <=

Logical operator

Logical and : &&

Logical or :  

Logical not : !