+3 votes
in JAVA by
In a class implementing an interface, can we change the value of any variable defined in the interface in Java?

1 Answer

0 votes
by

No, we can’t change the value of any variable of an interface in the implementing class as all variables defined in the interface are by default public, static and Final and final variables are like constants which can’t be changed later.

Related questions

0 votes
asked May 5, 2021 in JAVA by SakshiSharma
+2 votes
asked May 31, 2020 in JAVA by SakshiSharma
...