Single Choice Not Set

QWhich of the following is a correct interface?

ID: #2276 Java Interfaces And Abstract Classes MCQ 5,572 views
Question Info
#2276Q ID
Not SetDifficulty
Java Interfaces And Abstract Classes MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A
    interface A { void print() { } }    
  • B
     abstract interface A { print(); } 
  • C
    abstract interface A { abstract void print(); { }}  
  • D
     interface A { void print(); } 
Correct Answer

Explanation

 interface A { void print(); } 

Share This Question

Challenge a friend or share with your study group.