The following code is part of a method that's used in a program I'm doing. The method is called by a loop so it is used multiple times. As the variables values are declared at the top of the method, my question is if these values all return to zero each time the method is called by my loop?
// user defined method static int product(int num1, int num2){ // declare product method and parameters to receive arguments int i = 0, r = 0; // "i" variable controls "sum" index _ "r" holds remainder int[] sum = new int[20]; int product = 0; // return value of multiplication while(num1 != 0 || num2 !=0){ // while there are digits remaining in either number input