java card applet development :transmit a value directly or use a final variable
Posted: Fri Sep 11, 2015 5:39 am
I am new to java card applet development.
Now I am confused with the issue about the ways to transmit value.
See the last parameter pls.
1. Transmit a value directly
2. Transmit value by a final variable
Which expression is better for applet development ?
Now I am confused with the issue about the ways to transmit value.
See the last parameter pls.
1. Transmit a value directly
Code: Select all
Util.arrayCopyNonAtomic(DataBuffer,p1p2,buffer,(short)0,(short)8);
2. Transmit value by a final variable
Code: Select all
final static short copy_length=8;
Util.arrayCopyNonAtomic(DataBuffer,p1p2,buffer,(short)0,copy_length);
Which expression is better for applet development ?