Home  >  Article  >  Java  >  What does "=" in java mean?

What does "=" in java mean?

尚
Original
2019-12-02 09:37:018834browse

What does

Assignment operator "=": (Recommended: java video tutorial)

Function: Return the value of the expression on the right side of the operator Assign a value to the variable on the left or a final-modified variable.

Left side: variable, or final modified variable

Right side: can be any expression (the type of the returned value must be compatible with the left side).

= is an assignment operator that assigns a value to a variable, and then the value can be referenced through the variable. For example:

a = 10; // 将 10 赋给变量 a

Operands: The data involved in the operation are called operands.

Expression: A whole that uses operators to connect several operands. Each operand can also be viewed as a simple expression.

Return value: There will be a return result after the expression operation is completed.

For more java knowledge, please pay attention to the java basic tutorial column.

The above is the detailed content of What does "=" in java mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn