adspace
Can we have default method with same name and signature in the derived interface as the static method in base interface and vice versa?
Answer Posted / Satyendra Kumar Singh
No, it is not possible to have a default method with the same name and signature as a static method in a base interface or a derived interface. Static methods are class-level methods that are not part of the class hierarchy, while default methods are instance-level methods that can be overridden by subclasses.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category