Java OCA OCP Practice Question 1159

Question

Which access modifier allows you to access method calls in libraries not created in Java?

  • A. public
  • B. static
  • C. native
  • D. transient
  • E. volatile


C.

Note

The native modifier is an indicator to the Java Virtual Machine that the method actually lives in a library outside of Java.

The System.loadLibrary() method is required to indicate which library contains the method.




PreviousNext

Related