This discussion is archived
5 Replies Latest reply: Mar 7, 2012 10:43 AM by safarmer RSS

Java Card Data Memory - how can a 16k array fit on my 8k card?

921858 Newbie
Currently Being Moderated
Hi all,

I tried to guess the memory size I can use in my applets by allocating arrays of bytes.

I noticed that I am allowed to allocate a lot more memory than my physical RAM. For instance my card is 8KB ram but in my install method I create an array of 16384 bytes. How can it be possible ? Is there a swap mechanism or a virtual memory mechanism like classic computers ? I am working with a Javacard 3.0 Classic.

Thanks a lot for your explanation.