Java Abstract update