@@ -0,0 +1,476 @@
+class TestClass%7B%0A%09public static void main(String args%5B %5D )%7B%0A%09%09int i = 1;%0A%09%09int%5B%5D iArr = %7B1%7D;%0A%09%09/*%0A%09%09%09It is simple variable passing and no value is returned so the value%0A%09%09%09will not change in this current scope.%0A%09%09*/%0A%09%09incr(i) ;%0A%09%09/*%0A%09%09%09Array elements get affected when passed into methods.%0A%09%09*/%0A%09%09incr(iArr) ;%0A%09%09System.out.println( %22i = %22 + i + %22 iArr%5B0%5D = %22 + iArr %5B 0 %5D ) ;%0A%09%7D%0A%09public static void incr(int n ) %7B n++ ; %7D%0A%09public static void incr(int%5B %5D n ) %7B n %5B 0 %5D++ ; %7D%0A%7D%0A

Create array_2.java