top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Why does Java permit only final outer values in anonymous classes?

+2 votes
176 views
Why does Java permit only final outer values in anonymous classes?
posted Dec 10, 2014 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
0 votes

By making private constructor, we can avoid instantiating class from anywhere outside and by making class final, no other class can extend it. Why is it necessary for Util class to have private constructor and final class ?

...