Frage im Vorstellungsgespräch bei Revature

What is the difference between a static variable and a final variable?

Antwort im Vorstellungsgespräch

Anonym

17. Nov. 2020

The static variable belongs to a class only ( a child class cannot inherit) the Final variable is a constant variable that cannot be changed but can be inherited