nerdexam
CompTIA

ADR-001 · Question #23

Which of the following describes why a developer should define private wrappers around native and public native methods?

The correct answer is A. To prevent untrusted callers from invoking native methods. See the full explanation below for the reasoning.

Question

Which of the following describes why a developer should define private wrappers around native and public native methods?

Options

  • ATo prevent untrusted callers from invoking native methods.
  • BTo filter data that is sent to the native methods.
  • CBecause native methods cannot be called directly.
  • DTo impose naming convention on methods.

How the community answered

(40 responses)
  • A
    70% (28)
  • B
    5% (2)
  • C
    8% (3)
  • D
    18% (7)

Community Discussion

No community discussion yet for this question.

Full ADR-001 Practice