Multiple choice technology programming languages

Is the following declaration for interface Bendable correct and free of compilation error?

abstract interface Bendable { // line 1   

    final int x = 2009; // line 3    
    
    void method1() {}; // line 5 
}

  1. Yes, this is a correct and free of error declaration

  2. No, compilation error at line 1

  3. No, compilation error at line 3

  4. No, compilation error at line 5

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Interface methods without default or static modifiers are implicitly abstract and must not contain a body. Line 5 attempts to define void method1() {}; with an empty implementation block {}, causing a compilation error. Interfaces can be declared abstract (line 1) and variables can be final (line 3).