https:
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
---------
https:
https:
37 tokens are the operators
= :: มอบหมายค่า
> :: มากกว่า
< :: น้อยกว่า
! :: ตรงข้ามกับค่าบูลีน
~ :: กลับบิท
? :: เงื่อนไขแบบสั้น
: :: ตัวดำเนินการ
== :: เทียบเท่ากับ
<= :: เทียบน้อยกว่าหรือเท่ากับ
>= :: เทียบมากกว่าหรือเท่ากับ
!= :: เทียบไม่เท่ากับ
&& :: เงื่อนไขและ
|| :: เงื่อนไขหรือ
++ :: เพิ่มค่าอีกหนึ่ง
-- :: ลดค่าลงหนึ่ง
+ :: บวก
- :: ลบ
* :: คูณ
/ :: หาร
& :: ดำเนินการทางบิท คือ และ
| :: ดำเนินการทางบิท คือ หรือ
^ :: ดำเนินการทางบิท คือ exclusive or
% :: หาค่าที่เหลืออยู่
<< :: ดำเนินการทางบิท เลื่อนไปทางซ้าย
>> :: ดำเนินการทางบิท เลื่อนไปทางขวา
>>> :: ดำเนินการทางบิท เลื่อนไปทางขวา
+= :: บวกค่าทางขวาเพิ่มให้กับทางซ้าย
-= :: ลบค่าทางขวาออกจากทางซ้าย
*= :: คูณค่าทางขวาให้กับทางซ้าย
/= :: หารค่าทางขวาให้กับทางซ้าย
&= :: ดำเนินการและ ทางขวาให้กับทางซ้าย
|= :: ดำเนินการหรือ ทางขวาให้กับทางซ้าย
^= :: ดำเนินการ exclusive or ทางขวาให้กับทางซ้าย
%= :: หาค่าที่เหลืออยู่
<<= :: เลื่อนบิทไปทางซ้าย
>>= :: เลื่อนบิทไปทางขวา
>>>= :: เลื่อนบิทไปทางขวา
*** https: