What happens when we access the same variable defined in two interfaces implemented by the same class?

Mỹ An

New member
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
 

Tìm kiếm

Back
Top