1

Consider the following class:
class Test
{
public static void swap(int i, int j)
{
int temp=i;
i = j;
j = temp;
}
public static void main(String[] args)
{
int i=10,j=20;
swap(i, j);
System.out.println(“i = ” + i + “, j = ” + j);
}
}

  • A

    i=10,j=20

  • B

    i=20,j=10

  • C

    i=10,j=10

  • D

    i=20,j=20