Other than the fact that A and B are different classes?
A "final" variable is one that cannot be changed after being initialized. Note that this means the object that the variable refers to can't be changed, but the object's member variables may themselves be changed.
Please don't post stuff like this in the "Advanced" forum. Moving to
Java in General (Beginner.)