Question: Question: How does the default keyword in Java interfaces affect method definitions? A) It allows interfaces to provide method implementations directly, rather than only method
Question: How does the default keyword in Java interfaces affect method definitions?
A) It allows interfaces to provide method implementations directly, rather than only method declarations.
B) It forces all methods in an interface to be implemented by any class that uses the interface.
C) It prevents methods in an interface from being overridden by implementing classes.
D) It allows interface methods to be static, which means they can be called without creating an instance of the interface.
Step by Step Solution
There are 3 Steps involved in it
The detailed answer for the above question is provided below The correct option is A It allows interfaces to provide method implementations directly rather than only method declarations Reason This op... View full answer
Get step-by-step solutions from verified subject matter experts
