摘要:
今日练习了教材中的用户登录的例题,学习了使用了: <c:if>判断标签,<c:set>标签,set标签的scope属性中有四种作用范围: page标签文件执行完后释放,request请求结束后释放,session用户离开网页时释放, application服务器关闭时释放。学习使用了<jsp:for 阅读全文
摘要:
以下是运行结果: 我们来分析一下为何会有如下结果: 首先 Parent parent=new Parent(); parent.printValue(); Child child=new Child(); child.printValue(); 分别输出父类和子类各自的myValue,100和200 阅读全文
摘要:
1. 父类: public class Father { public void showOut() { System.out.println("这是父类方法!"); } } 子类: public class Son extends Father{ public void showOut() { s 阅读全文