What happens when we access the same variable defined in two interfaces implemented by the same class?
(a) Compilation failure
(b) Runtime Exception
(c) The JVM is not able to identify the correct variable
(d) The interfaceName.variableName needs to be defined
The question was asked in an internship interview.
Enquiry is from Interfaces in section Interfaces & Packages of Java
Select the correct answer from above options
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)