yes, we can have an inner class inside a method and final variables can be accessed.
Can you have an inner class inside a method and what variables can you access? Pushpendra Singh 2006 25 Oct 2010
variables can be accessed.