0 votes
in JAVA by (30.7k points)
Can we access the non-final local variable, inside the local inner class?

1 Answer

0 votes
by (30.7k points)

No, the local variable must be constant if you want to access it in the local inner class.

Click here to read more about JAVA
Click here to read more about Insurance

Related questions

0 votes
asked Apr 8, 2021 in JAVA by SakshiSharma (30.7k points)
0 votes
0 votes
asked May 5, 2021 in JAVA by SakshiSharma (30.7k points)
...