Showing posts with label pass-by-reference. Show all posts
Showing posts with label pass-by-reference. Show all posts

Friday, May 25, 2012

Is Java pass-by-reference?


I always thought Java was pass-by-reference, however I've seen a couple of blog posts (e.g. this blog ) that claim it's not. I don't think I understand the distinction they're making.

Friday, February 10, 2012

JNI how get values updated to int and double fields


How do two values I pass into my JNI tossed down to C then C does its changes and updates the values. How do I get those two values(maxPower, index) and see then in Java? They always come back as zero.