In C/C++ we use static local variables for maintaining a method\'s state. But why it is not supported in Java?
Yes, I can use an static field for this purpose. But i
Perhaps because methods are not objects in Java; so maintaining their state as you said make not much sense and I guess you'd have to create a new concept in the byte code for that; use an object as Tony K. said.