What Happens When We Access The Same Variable Defined In Two #1086
What happens when we access the same variable defined in two interfaces implemented by the same class?
This multiple choice question (MCQ) is related to the book/course gs gs128 Java. It can also be found in gs gs128 Java Interfaces Packages - Java Interfaces - Quiz No.1.
What happens when we access the same variable defined in two interfaces implemented by the same class?
Compilation failure
Runtime Exception
The JVM is not able to identify the correct variable
The interfaceName.variableName needs to be defined