Particularly in J2ME which approach consumes more resource : manipulating the public static variables or manipulating the set() and get() methods ?
Particularly in J2ME which approach consumes more resource : manipulating the public static variables
Share
public staticfield access would cost you less resources thansetter / gettermethods. If you are on a modern hotspot JVM, there will be minimal difference.