Java-Array as Parameters of Method

Array as Parameters of¬†Method By passing the array name, we are, in fact passing the reference of the array to the called function. The array in the called function now refers to the same array stored in the memory. Program Program Source class Setdata{ void setData(int[] v) { v[0] = 10; v[2] = 30; v[4] … Read more…