This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Are non-static variables declared within a static method or static block, of any use by methods outside of that method or block? If not, why would they exist, other than to possibly be used when assigning a value to an actual static variable? Let me know what you think, Thanks, TM
Any variable declared in any method can only be used in that method (exception of local method classes). A variable declared in a static block is local to that block the same way that a variable declared in a method is local to that method.