Field can be used for run - time constants , as in this line 字段可用于运行时常数,如下面的代码行所示:
Field can be used for runtime constants as in the following example 字段可用于运行时常数,如下例所示:
A compile - time constant will have the same value each time an application runs , while a run - time constant may change each time 应用程序每次运行时,编译时常数都具有相同的值,而运行时常数的值可能会发生变化。
A compile - time constant is computed at the time the code is compiled , while a run - time constant can only be computed while the application is running 编译时常数和运行时常数编译时常数在编译代码时进行计算,而运行时常数则只能在应用程序运行时进行计算。