Answer:
The answer is "Option 2".
Explanation:
Methods of instance are needed to construct an object of their class and needed to call. In java, the static method can be called without generating a class object. and other options are not correct that can be explained as follows:
- In option 1, Accessor is a function that is used to set the value of private fields that's why it is not correct.
- In option 3, Internal is a keyword that is used to provide accessibility to function.
- In option 4, Static is a keyword that is used with a class, method, and variable. This keyword is used to share the same variable or method to the class. That's why it is not correct.