Open In App

Java | Abstract Class and Interface | Question 2

Last Updated : 22 Apr, 2022
Like Article

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.


1, 3 and 4


1, 2 and 4


2, 3 and 4


1, 2, 3 and 4

Answer: (A)

Explanation: The instance of an interface can’t be created because it acts as an abstract class.

Quiz of this Question

Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads