What will the following program print?
public class Main{ static int i = 10; public static void m(int a){ a = 20;//from w ww. ja v a2s .co m } public static void main(String [] args){ m(i); System.out.println(i); } }
Select 1 option
Correct Option is : A
In case of primitives such an an int, it is the value of the primitive that is passed.