JavaCard Applet Development Related Questions and Answers.
-
Heather
- Posts: 24
- Joined: Mon Nov 30, 2015 5:41 am
- Points :121
-
Contact:
Post
by Heather » Mon Nov 30, 2015 5:59 am
As we all know, JCVM doesn't have garbage collector. So in a for loop:
Does the x variable get utilized after the for loop, or it turns into garbage? What happens with the x variable in the for loop?
-
kuafu
- Posts: 317
- Joined: Thu Jun 25, 2015 2:09 am
- Points :4563
-
Contact:
Post
by kuafu » Mon Nov 30, 2015 6:25 am
x is a local variable , and its type is base type .So it's allocated in RAM. It will be recycled after the method or the block end. Its recycle is different with the reference type variable alloacated in EEPROM . It's recycle is faster . And most of the reference type is allocate in EEPROM, garbage the reference type cost much time.
well
Users browsing this forum: No registered users and 27 guests
JavaCard OS : Disclaimer
Board Disclaimer
The views and comments posted in these fora are personal and do not necessarily represent the those of the Management of JavaCard OS.
The Management of JavaCard OS does not, under any circumstances whatsoever, accept any responsibility for any advice, or recommentations, made by, or implied by, any member or guest vistor of JavaCard OS that results in any loss whatsoever in any manner to a member of JavaCard OS, or to any other person.
Furthermore, the Management of JavaCard OS is not, and cannot be, responsible for the content of any other Internet site(s) that have been linked to from JavaCard OS.