a basic question about java( card ? )
when declaring an array like this :
publicstaticfinalbyte[] T ={ (byte)0x01 , (byte)0x02};
it's "final" , meaning "constant.
Is it posible to use the Util.arrayCopy to copie data from another buffer X into my buiffer T.
in other words, the "contant" here is about the "adress" ( the reference byte[] T ), or about the content of the buffer ?
[629 byte] By [
kartagosa] at [2007-10-2 5:22:35]

Kartagos,
The Java Card Virtual Machine Specification explains that the final keyword is used the same as in the Java programming language. The Java language specification says that:
Once a final variable has been assigned, it always contains the same value. If a final variable holds a reference to an object, then the state of the object may be changed by operations on the object, but the variable will always refer to the same object. This applies also to arrays, because arrays are objects; if a final variable holds a reference to an array, then the components of the array may be changed by operations on the array, but the variable will always refer to the same array.
http://java.sun.com/docs/books/jls/third_edition/html/typesValues.html#4.12.4
So, Util.arraycopy() will work to put the content of X into T. However, setting T to equal X will not.