Intermediate
Java
Q47 / 100
What is the purpose of the interface keyword?
Correct! Well done.
Incorrect.
The correct answer is B) To define a contract of method signatures that implementing classes must fulfill
B
Correct Answer
To define a contract of method signatures that implementing classes must fulfill
Explanation
An interface defines a contract. Since Java 8, interfaces can also include default and static methods with implementations.
Progress
47/100