Original Post
I have: now the output is: null this is because apparently, java is not treating Double as a reference! Double is derived from Objects, so shouldn't it be treated as a reference?
public class Calculator
{
public static void main(String args[])
{
Double c = null;
test(c);
System.out.println(c);
}
public static void test(Double b)
{
b = new Double("5");
int i = 5;
}
}