当对象为空时get取值造成的错误

System.out.println("查询到的学号和密码:"+student.getStudent_id()+"和"+student.getPassword());

当student对象为空时取值会造成错误

猜你喜欢

转载自blog.csdn.net/xjh1997/article/details/80070923