nerdexam
Android

OA0-002 · Question #16

Which is the correct explanation of the Foo.java source code?

The correct answer is D. The compile will succeed without problems. See the full explanation below for the reasoning.

Question

Which is the correct explanation of the Foo.java source code?

Exhibit

OA0-002 question #16 exhibit

Options

  • ASince mapping will occur to C/C++, int must be declared as jint.
  • BString, which is a reference type, cannot be used in the native method
  • CVisibility cannot be declared as private in the native method.
  • DThe compile will succeed without problems.

How the community answered

(44 responses)
  • A
    16% (7)
  • B
    9% (4)
  • C
    5% (2)
  • D
    70% (31)

Community Discussion

No community discussion yet for this question.

Full OA0-002 Practice