The scope of variables in Java – Part 1
In Java, any variable can have the following scopes: The variable is inside any method. As a parameter of any method. The variable is inside an object (including fields, attributes, and variables that are not static variables). The static variable of a class. In this… Read More
