Operator is based on one or more arguments to generate a new value. The argument takes a different form from the original method invocation, but the effect is the same.
The general concept of operators should not be difficult to understand, based on previous experience with writing programs.
The use of the plus (+), minus and minus sign (-), multiplication (*), Division (/), and equal sign (=) is similar to all other programming languages.
All operators can generate a value based on their own arithmetic object. In addition, an operator can change the value of an Operation object, which is called a "side effect" (Side Effect).
The most common use of operators is to modify their own operation objects, resulting in side effects. However, note that the generated value can also be generated by operators without side effects.
Almost all operators can only manipulate the "main type" (primitives). The only exceptions are "=", "= =" and "!=", which can manipulate all objects (which is also a confusing place for objects). In addition, the string class supports "+" and "+ +".