test about java class function