Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

java card applet development :transmit a value directly or use a final variable

JavaCard Applet Development Related Questions and Answers.
GraceGIRL
Posts: 15
Joined: Fri May 15, 2015 3:25 am
Points :30
Contact:

java card applet development :transmit a value directly or use a final variable

Post by GraceGIRL » 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

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 ?

User avatar
Larson
Posts: 18
Joined: Wed May 20, 2015 3:56 am
Points :30
Contact:

Re: java card applet development :transmit a value directly or use a final variable

Post by Larson » Thu Oct 08, 2015 6:07 am

The second method is better than the first one. Moreover, if you want to change the value, you only need to change the value in definition command.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 52 guests

JavaCard OS : Disclaimer