I have a question about parameter passing in Java. Let's say i have a method:
public void x(Object o)
Let's say i call x(3) and x("abc"). x(3) will take a little bit more time because a new Integer is constructed, since 3 is not an Object. Assuming i can't change the method calls, only the method implementation (and parameter type), is there a way to prevent this Integer construction until some point in the method x where i know it's really needed?