$ 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!