1 / 37
文档名称:

Java英文题【DOC精选】.doc

格式:doc   大小:313KB   页数:37
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

Java英文题【DOC精选】.doc

上传人:phljianjian 2017/2/22 文件大小:313 KB

下载得到文件列表

Java英文题【DOC精选】.doc

相关文档

文档介绍

文档介绍:Multiple-Choice 1. The name ofa Java source file d (a) has no restrictions (b) must be the same as the class it defines, ignoring case (c) must use the extension .class (d) must be the same as the class it defines, respecting case 2. Which of the following statements is (are) true about the use ofan asterisk (*) ina Java import statement? b Ⅰ. It does not incur run-time overhead. Ⅱ. It can be used to import multiple packages with a single statement. Ⅲ. It can be used to import multiple classes with a single statement (a) I, II, and III (b )I and III only (c) I only (d) III only 3. What is the name of the wrapper class for the type int ?c (a) INT (b) integer (c) Integer (d) Int difference between the methods print and println of the class is that d (a) println inserts a new line at the beginning of its output, but print does not (b) print inserts a new line at the beginning of its output, but println does not (c) print appends a new line to the end of its output, but println does not ( d) println appends a new line to the end of its output, but print does not 5. Consider the following Java program segment. a int x=5;int y=2; (x +"1" +y); Which of the following statements is true about the program segment? (a) The output caused by the code will be 512 . (b) The output caused by the code will be512 . (c) The output caused by the code will be8 . (d) The code will cause pilation error. 6. All Java exception classes are derived from the class b (a) (b) (c) (d) 7. What is the right way to handle abnormalities in input on Java ?b (a) By writing while loops to guard against bad input (b) By handling these problems by providing exception handlers (c) By using the class FileFilter which gracefully filters out bad input data (d) By always specifying the throws clause in every method header where file I/O is performed 8. Which of the following patterns of