public class
Test {
static int x = 9;
static int y = 'V';
public static void processInt(int i)
{
i = 18;
process(y);
}
public static void process(long l)
{
l = 27;
}
public static void process(short s)
{
s = 36;
}
public static void main(
String[] args)
{
processInt(x);
System.out.println(x);
System.out.println((char)y);
}
}
can some one please explae the answer to me.
Correct answer is 9 and 'V'.
Thanks in advance
Amit