Local Classes
Published in
1 min readMar 8, 2017
See LocalClasses.java to better understand how local classes work
Local classes: classes that are defined within non-static methods
The Following are characteristics of local classes
1) a local class may behave differently depending on whether it is defined
inside a static method or a non-static method
2) a local class may access only variables declared final, or variables that
are effectively final (a variable whose value is never changed)