Local inner class can access non-final local variable - Core Java

Q.  Local inner class can access non-final local variable
- Published on 13 Jul 15

a. True
b. False

ANSWER: False
 

    Discussion

  • Rahul mahajan   -Posted on 22 Nov 17
    True
    Local Inner class does not access non final variable till JFK 1.7 but in jdk1.8 it can access

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)