Method local classes ?
<p>When we declare a class inside a function and also create a variable of that class, is the object for that class pushed onto the stack or the heap ? I have some confusion regarding the use of final keywords when used in context with inner classes ? If both the variable and the class object exist on the stack, why do we then need to name a variable final ? </p>

<p>Kind Regards.</p>
