nerdexam
GIAC

GSSP-JAVA · Question #64

Which of the following statements about a native modifier in Java are true? Each correct answer represents a complete solution. Choose two.

The correct answer is B. A method with a native modifier must end with a semicolon. C. It can be applied only to methods. See the full explanation below for the reasoning.

Question

Which of the following statements about a native modifier in Java are true? Each correct answer represents a complete solution. Choose two.

Options

  • AIt can be applied to methods and variables.
  • BA method with a native modifier must end with a semicolon.
  • CIt can be applied only to methods.
  • DIt can be applied only to variables.
  • EA separate Java class must be written to provide implementation for a native method.

How the community answered

(56 responses)
  • A
    11% (6)
  • B
    84% (47)
  • D
    4% (2)
  • E
    2% (1)

Community Discussion

No community discussion yet for this question.

Full GSSP-JAVA Practice