单项选择题
J2EE中,标记的作用是()。
A.<jsp:setProperty>和<jsp:getProperty>必须在一个jsp文件中搭配出现
B.就如同session.setAttribute()一样,来设置属性/值对
C.和<jsp:useBean>动作一起使用,来设置bean的属性值
D.就如同request.setAttribute()一样,来设置属性/值对
相关考题
-
单项选择题
在J2EE中,对于简单属性的方法: public Color getColor(){…} 和public Void setColor(Color c){…} 假定color是类中的属性,在方法体内可以()
A. 在getColor方法体内只能有一行代码:return color; 在setColor方法体内只能有一行代码: this.color=c;
B. 在getColor方法体内只能有一行代码:return color; 在setColor方法体内一定有该行代码: this.color=c;但还可以有其他的代码
C. 在getColor方法体内一定有该行代码:return color; 但还可以有其他的代码, 在setColor方法体内只能有该行代码: this.color=c;
D. 在getColor方法体内一定要有该行代码:return color; 但还可以有其他的代码,在setColor方法体内一定有该行代码: this.color=c;但还可以有其他的代码 -
单项选择题
使用()修饰符时,一个类能被同一包或者不同包中的其他类访问。
A. private
B. pretected
C. public
D. friendly -
单项选择题
在J2EE中,系列选项中,()可以得到URLCconnection类对象。
A.使用URL对象的openConnection()方法得到
B.使用URLConnection类的静态方法openConnection()方法得到
C.使用URL对象的getConnection()方法得到
D.使用URLConnection类的静态方法getConnection()方法得到
