What will be output of the following program?
class PrintNumbers
{
public static void main(String[] args)
{
int a[] = {2};
a = new int[]{5};
int x = a[0];
while (x >= 0)
{
process(a);
x = a[0];
x--;
System.out.println("x = " + x);
}
}
private static void process(int[] a)
{
int x = a[0]--;
x++;
}
}