isConst abstract method

bool isConst()

Checks if this field is const.

Returns:

  • true if declared with const modifier
  • false otherwise

Note: Const fields are initialized at compile time.

Implementation

bool isConst();