29, They would like something to drink.
第1题:
A.if(i>10)throwException(“something’swrong!”);
B.if(i>10)throwExceptione(“something’swrong!”);
C.if(i>10)thrownewException(“something’swrong!”);
D.if(i>10)thrownewExceptione("something’swrong!");
第2题:
WebSQL is a SQL-like(26)language for extracting information from the web. Its capabilities for performing navigation of web(27)make it a useful tool for automating several web-related tasks that require the systematic processing of either ail the links in a(28), all the pages that can be reached from a given URL through(29)that match a' pattern, or a combination of both. WebSQL also provides transparent access to index servers that can be queried via the Common(30)Interface.
A.query
B.transaction
C.communication
D.programming
第3题:
Java程序中读入用户输入的一个值,要求创建一个自定义的异常,如果输入值大于10,使用throw语句显式地引发异常,异常输出信息为“something’swrong!”,语句为()。
A.if(I>10)throw Exception(“something’swrong!”);
B.if(I>10)throw Exceptione(“something’swrong!”);
C.if(I>10)thrownew Exception(“something’swrong!”);
D.if(I>10)thrownew Exceptione(“something’swrong!”);
第4题:
_____stole my purse when I was on the train.
A. Anyone
B. Someone
C. Something
第5题:
此处,Something 类的文件名叫OtherThing.java
class Something {
private static void main(String[] something_to_do) {
System.out.println("Do something ...");
}
}
这个好像很明显。
正确。从来没有人说过Java 的Class 名字必须和其文件名相同。但public class 的名字
必须和文件名相同。
第6题:
24、以下论断正确的是()。
A.""是空串," "空格串
B."BEIJING"是"BEI JING"的子串
C."something"="Something"
D."BIT"="BITE"