Home >Java >Javagetting Started >What does java $ represent?

What does java $ represent?

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-11-11 15:08:234402browse

What does java $ represent?

$ conforms to the naming convention. You can understand it as a special letter, somewhat similar to an underscore.

For example:

int $a$ = 10;
for (int i$ = 0; i$ < $a$; ++i$)

is generally code automatically generated by some machines. Add $ to show the distinction. It also helps to prevent variable names from being repeated; it is highly, very strongly not recommended to do this when writing code manually. .

php Chinese website, a large number of free Java introductory tutorials, welcome to learn online!

The above is the detailed content of What does java $ represent?. 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
Previous article:what is it javaNext article:what is it java