你可能喜欢
多项选择题
A.在这两行代码前加上代码:response.setContentType("text/html,charset=GBK");
B.已经可以显示汉字,不用添加任何代码
C.在这两行代码前加上代码:response.setContentType("text/html");
D.在这两行代码前加上代码:response.setContentType("text/html,charset=gb2312");
单项选择题
A.name=jb-aptech&phone=12345678GET
B.name=jb-aptech,phone=12345678GET
C.jb-aptech,12345678POST
D.name,phoneGET
E.2,POST
单项选择题
A.编译该文件时会提示缺少doGet()或者doPost()方法,编译不能够成功通过
B.编译后,把Servlet1.class放在正确位置,在浏览器中查看该Servlet1,会看到输出文字:“hello!”
C.编译后,把Servlet1.class放在正确位置,在浏览器中查看该Servlet1,却看不到任何输出的文字
D.编译后,把Servlet1.class放在正确位置,在浏览器中查看该Servlet1,却看到产生运行时错误的出错信息
多项选择题
A.使用java命令运行该类文件,将在控制台上打印:"文件没有发现!"
B.运行结束后打开employee.txt,会发现该文件什么也没有
C.运行结束后打开employee.txt,会发现文件中有这样的文本:“jb-aptech75000”
D.在第7行后加上代码:out.close(),编译并运行该类文件后,打开employee.txt,才会发现文件中有这样的文本:“jb-aptech75000.0”
E.把第2行代码改为:PrintWriterout=newPrintWriter(newFileOutputStream(“employee.txt”),true);编译并运行该类文件后,打开employee.txt,才会发现文件中有这样的文本:“jb-aptech75000.0”
单项选择题
A.method_1
B.method_2
C.method_3
D.method_4
多项选择题
A.method_1
B.method_2
C.method_3
D.method_4
单项选择题
A.一切成功编译
B.Shape可以编译,Square不能编译
C.Square可以编译,Shape不能编译
D.Shape,Square都不能编译
单项选择题
A.创建一个类mypackage.My_Class的对象
B.创建一个类mypackage.mysubpackage.My_Class的对象
C.该语句是错误的
D.创建一个类mypackage.My_Class的对象和一个类mypackage.mysubpackage.My_Class的对象