Learn Java Programming - Static Initialization Block Tutorial

Publicado em: 16 Agosto 2015
no canal de: Daniel Ross
4,915
59

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.


Nesta página do site você pode assistir ao vídeo on-line Learn Java Programming - Static Initialization Block Tutorial duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Daniel Ross 16 Agosto 2015, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 4,915 vezes e gostou 59 espectadores. Boa visualização!