What happens to static variable that is defined within method of class

What happens to static variable that is defined within method of class

Answer : Only final variable is permitted inside method and if you define then you will get compile time exception.

Leave a Reply

Your email address will not be published. Required fields are marked *