What is significance of putting “$” sign before a parameter in Java / Android?

后端 未结 5 1788
一生所求
一生所求 2021-01-20 23:29

What is the difference or significance of putting $ sign before any variable or parameter..

e.g.

Suppose here is my class...

 public class Vecto         


        
5条回答
  •  感动是毒
    2021-01-20 23:58

    According to the Java Language Specification, it's permissible, but has no special meaning. Note that the specification goes on to recommend that it "only be used in mechanically generated source code, or rarely, to access pre-existing names in a legacy system".

提交回复
热议问题