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 .
Local variable
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 .
Long
Object wrapper class for long primitives.
long
Java keyword used to declare a primitive variable of type long , which uses 64 bits to represent integral values ranging from -263 to 263-1 (or -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807). Yes, that's over 9 quintillion .