Java | Use of final keyword in java