No. Inside the method, Java does not have something that can be remembered in different calls.
if you want to save a value for several method calls, you must save it as an instance variable or class variable.
Instance variables are different for each object / instance, while class variables (or static variables) are the same for all objects in this class.
eg:
class ABC { int instance_var;
source share