This tutorial will build on concepts from both my Instance Initialization Block Part 1 and Instance Initialization Block Part 2 tutorials. I highly recommend watching those tutorials before continuing with this tutorial.
There are some major differences between instance and static initialization blocks. A static initialization block is not dependant upon a constructor to be invoked. A static initialization block is executed when the class is first accessed, either to create an instance, or to directly access a class variable or a static method. A static Initialization block will only be executed once throughout the entire program; it won't matter how many objects you create or if you directly access a static member a bazillion times.
En esta página del sitio puede ver el video en línea Learn Java Programming - Static Initialization Block Tutorial de Duración hora minuto segunda en buena calidad , que subió el usuario Daniel Ross 16 agosto 2015, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 4,915 veces y le gustó 59 a los espectadores. Disfruta viendo!