相关考题
-
单项选择题
在包com.landray.util 下定义一个类,要让com.landray.two下的所有类可以访问这个类,那么这个类必须定义为()。
A.Public
B.Private
C.Protected -
单项选择题
以下Java语句中,String string =“1234567”;string =str.subString(1,3);执行后string中的值为()。
A.“23”
B.“234”
C.“123”
D.“12” -
单项选择题
假设在helloapp应用中有一个HelloServlet类,它在web.xml文件中的配置如下:()
A.http://localhost:8080/HelloServlet
B.http://localhost:8080/helloapp/HelloServlet
C.http://localhost:8080/helloapp/org/javathinker/hello
D.http://localhost:8080/helloapp/hello