Home > Java > JavaBase > What does '=' in java mean?

What does '=' in java mean?

Release: 2019-12-02 09:37:01
Original
8893 people have browsed it

What does '=' in java mean?

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template