You are already retrieving an answer for your command to the DB:
int i = st.executeUpdate("DELETE FROM Activity where employee_number ='"+empno+"'");
The return value is the number of rows affected by the command. As you are deleting it should return -1 if successful:
if(i == -1){
}