引用(reference)是某个对象的别名。 对常量的引用(reference to const)是一个引用,不能用来改变它所绑定对象的值。对常量的引用可以绑定常量对象,或者非常量对象,或者表达式的结果。
基于12个网页-相关网页
如果源代码文件中有名称空间声明,那么对类、函数和常量的所有引用都使用名称空间语义。
If a source file has a namespace declaration, then all references to classes, functions, and constants use the namespace semantics.
关键之处在于常量池包含对该类所用的其它类和方法的所有引用,还包含了该类及其方法的实际定义。
The key point is just that the constant pool contains all the references to other classes and methods used by this class, along with the actual definitions for this class and its methods.
以前讲过,常量池中对类型、字段和方法的引用在开始时都是符号。
As mentioned earlier, references to types, fields, and methods in the constant pool are initially symbolic.
应用推荐