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 / 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 |
What is the difference between a class and a structure?
If a class inherits an interface, what are the 2 options available for that class?
What is the default access modifier in a class?
What is the best tool for modeling and ORM framework
Explain the rationale behind object oriented concepts?
How to differentiate between a CreateObject() and GetObject() ?
What is the difference between an Abstract class and Interface?
State about java and its relation to object oriented programming?
What is the purpose of late binding in object-oriented programming?
Which oops concept exposes only necessary information to the calling functions?
How to resolve many to many relationship?
6 Answers InfoAxon Technologies, Protech, Samsung,
Can we override a method by using same method name and arguments but different return types?