Duran Harris wrote:If I have the following:
final int[];
will all the cells in the array have their value set at 0(int's default value)
or is the final modifier just to prevent reassigning the reference??
assigning values is a runtime thing
and
reassigning check for final's is compile time thing
here you are declaring an array reference that will point to group of int's
the values of these int's can be changed but the array reference will continue to point to this group of int's till its lifetime.