什么是compile-time-constant

To be a variable that is a compile time constant, the variable needs to be...

  • declared as final
  • have a primative or String type
  • initialized (on the same line as the declaration)
  • assigned to a compile time constant expression
posted @ 2015-05-27 09:35  sirlipeng  阅读(861)  评论(0编辑  收藏  举报