Question: what is the difference between final and static final in java?
Answer: final vs static final in java. Thus each instance has different value of field a. For static final, all instances share the same value, and can't be altered after first initialized.