Vidyalelo
Java Programming · Q177

Interfaces and Abstract Classes

Programming · Java Programming · question 177

Q177

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
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board