August 2004
Intermediate to advanced
480 pages
9h 41m
English
A local inner class is a class defined within the scope of a method. Local inner classes are often also anonymous classes. An important caveat regarding their use: Local inner classes cannot see variables defined in their enclosing method unless those variables are marked final.
A variable declared within a method. Local variables are sometimes (rarely) referred to as automatic variables. Local variables are distinct from class variables in that they must be initialized before you can use them. Local variables' visibility is only the life of the method—when the method in which they're defined returns, local variables vanish.
Object wrapper class for long primitives.
Java keyword used to declare a primitive ...
Read now
Unlock full access