자바 연산자 종류
Simple Assignment Operator (대입연산자)
= Simple assignment operator
Arithmetic Operators(산술 연산자)
+ Additive operator (also used for String concatenation)
- Subtraction operator
* Multiplication operator
/ Division operator
% Remainder operator
Unary Operators(단항 연산자)
+ Unary plus operator; indicates positive value (numbers are positive without this, however)
- Unary minus operator; negates an expression
++ Increment operator; increments a value by 1
-- Decrement operator; decrements a value by 1
! Logical complement operator;inverts the value of a boolean
Equality and Relational Operators (관계 연산자)
== Equal to
!= Not equal to
> Greater than
>= Greater than or equal to
< Less than
<= Less than or equal to
Conditional Operators(조건 연산자)
&& Conditional-AND
|| Conditional-OR
?: Ternary (shorthand for
if-then-else
statement)
Type Comparison Operator (타입 비교 연산자)
instanceof Compares an object to a specified type
Bitwise and Bit Shift Operators (비트 연산자)
~ Unary bitwise complement
<< Signed left shift
>> Signed right shift
>>> Unsigned right shift
& Bitwise AND
^ Bitwise exclusive OR
| Bitwise inclusive OR
'프로그래밍 > Java' 카테고리의 다른 글
[Java] 연산자-3 (0) | 2016.04.10 |
---|---|
[Java] 연산자-2 (0) | 2016.04.08 |
[Java] 자료형의 변환 (0) | 2016.04.04 |
[Java] Literals (0) | 2016.04.03 |
[Java] 자료형의 Default Value (0) | 2016.04.03 |