public interface Status { 12. /* insert code here */ int MY_VALUE = 10; 13. } Which three are valid on line 12? (Choose three.)

  1. final

  2. static

  3. native

  4. public

  5. private

  6. abstract


Correct Option: A,B,D
Explanation:

Explanation: In Java, an interface can only have public abstract methods and public static final fields. Therefore, on line 12, we can have only public, static, and final keywords. The correct answer options are D) public.

Option A) final - This option is correct because final keyword can be used only with the variables and methods

Option B) static - This option is correct because static keyword can be used with an interface.

Option C) native - This option is incorrect because native keyword is not allowed.

Option D) public - This option is correct because public keyword can be used

Option E) private - This option is incorrect because private keyword is not allowed

Option F) abstract - This option is incorrect because abstract keyword is not allowed.

Therefore, the correct options are B) static, D) public, and A) final.

Find more quizzes: