Question: Question: What happens when a class in Java implements multiple interfaces that have methods with the same signature? A) The class must override the method
Question: What happens when a class in Java implements multiple interfaces that have methods with the same signature?
A) The class must override the method and provide an implementation to avoid ambiguity.
B) The class cannot implement multiple interfaces if they have methods with the same signature.
C) The method is automatically inherited from one of the interfaces without any conflicts.
D) The class can choose which interface's method to inherit without implementing the method.
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 The class must override the method and provide an implementation ... View full answer
Get step-by-step solutions from verified subject matter experts
