Skip to content
Related Articles

Related Articles

Java | Abstract Class and Interface | Question 2
  • Difficulty Level : Medium
  • Last Updated : 02 Dec, 2013

Which of the following is true about interfaces in java.

1) An interface can contain following type of members.
....public, static, final fields (i.e., constants) 
....default and static methods with bodies

2) An instance of interface can be created.

3) A class can implement multiple interfaces.

4) Many classes can implement the same interface.

(A) 1, 3 and 4
(B) 1, 2 and 4
(C) 2, 3 and 4
(D) 1, 2, 3 and 4

Answer: (A)


Quiz of this Question

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :