
genism
415 PointsWhy can't we change the *nonstatic* MAX_PEZ?
It it non-static we should be to change it. class PezDispenser { public final int MAX_PEZ = 12; (...)
}
On consol jshell, why does this brings error? pd.MAX_PEZ = 123; Output: error : cannot assign a value to final variable MAX_PEZ
Thank you!