Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question: What does the default keyword signify in an interface method in Java? A) It allows the method to be overridden by implementing classes. B)
Question: What does the default keyword signify in an interface method in Java?
A) It allows the method to be overridden by implementing classes.
B) It provides a default implementation for a method in an interface, allowing it to be used directly by classes that implement the interface.
C) It prevents the method from being implemented in any class that uses the interface.
D) It makes the method static, so it belongs to the interface itself rather than instances of the implementing classes.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
The detailed answer for the above question is provided below The correct option is B It provides a default implementation for a method in an interface ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started