In this tutorial, I explain the basics of scope.
A variable declared outside of any method with the static keyword is called a class variable, and is available to all methods in the class (variables without the static keyword are called instance variables, and will be covered with object-oriented programming in future tutorials).
A variable that is declared inside of a method is local to that method, and only exists until that method is finished executing. It is not directly available to any other methods in the class.
Nesta página do site você pode assistir ao vídeo on-line Java Programming: 5 - Variable Scope duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário CodeMonkeyCharlie 23 Maio 2011, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 60,475 vezes e gostou 606 espectadores. Boa visualização!