Which is the correct explanation of the Foo.java source code?
A.
Since mapping will occur to C/C++, int must be declared as jint.
B.
String, which is a reference type, cannot be used in the native method
C.
Visibility cannot be declared as private in the native method.
D.
The compile will succeed without problems.
Explanation:
D