Class final Java basic