Home > Back-end >  Local inner classes access to a local variable problem?
Local inner classes access to a local variable problem?

Time:03-22

How local inner classes can access the final modification of the local variable, Internet information, are written can only access the final modification of the local variable? Beg a heavyweight solution, JDK 1.8, code as shown in figure:
Additional: please bosses to explain why local inner classes can only access the final modification of the local variable, the Internet is the cause of the life cycle, didn't quite understand, kneel to answer, thank you in advance bosses
  • Related