nerdexam
Oracle

1Z0-815 · Question #9

Given: Which two statements are valid to be written in this interface? (Choose two.)

The correct answer is B. final void methodG(){ G. public void methodF(){. See the full explanation below for the reasoning.

Question

Given:

Which two statements are valid to be written in this interface? (Choose two.)

Options

  • Apublic abstract void methodB();
  • Bfinal void methodG(){
  • Cprivate abstract void methodC();
  • Dpublic String methodD();
  • Epublic int x;
  • Ffinal void methodE();
  • Gpublic void methodF(){

How the community answered

(32 responses)
  • A
    13% (4)
  • B
    75% (24)
  • C
    6% (2)
  • D
    3% (1)
  • F
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-815 Practice