This is really related to a question I asked earlier, but I was hanged on this statement. I'm limited to Java 1.4 and I want to enter a There is no easy way to convert primitive to Java based on primitive object , But there is a slow pace and a faster way. You do not need much code in Java 5 but internally, when you use Autoboxing for int type in the object . Do I really need to use a integer class object or is there a way to put it directly (1.4 there is no auto-boxing). Is the price of this "manual boxing" suitable for importing a whole organs from three layers to 1 level, thus increasing coupling? New integer (int) is slow, Integer.valueOf (int) is fast. This is also true for all other types of types. valueOf () compiler.
Comments
Post a Comment