Learn Java Programming - Final Reference Variables Tutorial

Publicado el: 07 agosto 2015
en el canal de: Daniel Ross
1,107
15

When the final keyword is applied to a reference variable and the variable has been initialized, that reference variable cannot be reassigned to a different object instance. It is important to note that when final is applied to a reference variable it does not prevent the members of the object instance from changing values. A final reference variable can only be assigned to a reference of an object instance once and only once. The value does not need to be assigned when the reference variable is declared; this kind of a reference variable is called a blank final variable. A blank final instance reference variable must be assigned a value inside of a constructor or a compiler error will occur. A blank final local reference variable must be assigned a value before it is used. The optional common naming convention for final variables is to be in uppercase with an underscore (_) separating the words.


En esta página del sitio puede ver el video en línea Learn Java Programming - Final Reference Variables Tutorial de Duración hora minuto segunda en buena calidad , que subió el usuario Daniel Ross 07 agosto 2015, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,107 veces y le gustó 15 a los espectadores. Disfruta viendo!