T
Taeyun Kim
I'm a (relatively novice) java programmer for mobile devices.
In that environment, the size of java classes really matters. (Not the
JARed format; the size when the class is loaded into memory is
important.)
Here is a problem: A public static final member variable definition
costs 31 bytes in non-JARed class file. And it affects the memory
profile of the running program. And I have several hundreds of the
constant variables. So, I can't help prefering the use of #define
constants to the use of public static final member variable.
Is there any better method?
In that environment, the size of java classes really matters. (Not the
JARed format; the size when the class is loaded into memory is
important.)
Here is a problem: A public static final member variable definition
costs 31 bytes in non-JARed class file. And it affects the memory
profile of the running program. And I have several hundreds of the
constant variables. So, I can't help prefering the use of #define
constants to the use of public static final member variable.
Is there any better method?