Page 1 of 1

Re: About Question enthuware.ocpjp.ii.v11.2.3345 :

Posted: Fri Jul 29, 2022 3:09 am
by marcoolivi
How can a final variable be changed by a method? Does this have to do with the fact that the method setIn0() is labeled "native"?

Re: About Question enthuware.ocpjp.ii.v11.2.3345 :

Posted: Fri Jul 29, 2022 5:25 am
by admin
That's right. A native method executes low level code directly using OS service calls, bypassing the JVM. This allows it do stuff such as manipulating memory directly.