1. "class variable" - static variable declared in class scope, holds same value for all instances of the class 2. "instance variable" - variable declared in class scope and holds value unique to each instance. 3. "local variables" - variable declared inside method or any other block which defines (limits) visibility, like : a) method b) "for" loop declaration c) "catch" clause, etc ...
So, basically, you are right, and variable inside "try" block considered local variable.
Java Platform, Enterprise Edition 6 Web Services Developer Certified Expert Exam Study Guide and Quiz Exam 1Z0-810: Upgrade to Java SE 8 Programmer Study Guide and Quiz
Joined: Oct 04, 2004
Thanks Mikalai Zaikin I have one more doubt can we say, a class, whose constructors are all marked private, a final class. Thamks