Hi all,
I learned that "local static variable" with in a function is not allowed in JAVA as in C++.
I guess it violates the rule of "static" as it's should not depend on objects but is there any alternative way avaiable to accomplish that ? (i.e scope is restricted to fuction but lilfetime untill the program ends)
Is any other reason why "local static variables" is not allowed ?
Thanks in advance.