Q. What is the purpose of the ‘interface’ keyword in Java?
Solution:
An interface specifies a set of methods that a class must implement, enforcing a contract.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
An interface specifies a set of methods that a class must implement, enforcing a contract.
Strengthen Your Practice with our comprehensive question bank.