In Java, what's the benefit of int constant declared by an object way:
public final static Integer SOME_CONSTANT = Integer.valueOf(99);
instead of classic
public final static int SOME_CONSTANT = 99;
I know the basic difference between objects and primitives, also autoboxing. But I have seen this declaration in our company's code and I wonder, is there any particular reason of declaring integer constant as an object?