May 2019
Intermediate to advanced
546 pages
12h 41m
English
Besides the variables, you can define a static definition, where the value does not change after the initialization. These static definitions are constants. A constant is defined with the keyword final. Make it a common practice to define the constant names in all capitals. Let's look at how you write this in an example:
private static final Integer MAX_NUMBER_OF_MOVIES = 3;
Read now
Unlock full access