Computer Programming (java)
Assume that there is a class named TestInterface that implementstwo interfaces A and B. Both the interfaces have a common methodwith the same signature (example int sampleMethod()). Explain howwill the class define this method and how will the compileridentify, to which interface does this method belong to? Will thecompiler give an error or will the program execute successfully.Give your code snippet to support your answer.
Expert Answer
An answer will be send to you shortly. . . . .