阿摩線上測驗
登入
首頁
>
OJCP(SCJP)
>
104年 - SCJP 151-200#99330
>
156. Place the code fragments into position to use a BufferedReader to read in an entire text file.
其他申論題
沒有 【段考】國一國文上學期 權限,請先開通.
#415275
沒有 【段考】國一國文上學期 權限,請先開通.
#415276
153. Chain these constructors to create objects to read from a file named "in" and to write to a file named "out".
#415277
155. The doesFileExist method takes an array of directory names representing a path from the root filesystem and a file name. The method returns true if the file exists, false if it does not. Place the code fragments in position to complete this method.
#415278
169. Given: 12. NumberFormat nf = NumberFormat.getInstance(); 13. nf.setMaximumFractionDigits(4); 14. nf.setMinimumFractionDigits(2); 15. String a = nf.format(3.1415926); 16. String b = nf.format(2); Which two statements are true about The result if the default locale is Locale.US? (Choose two.) (A) The value of b is 2. (B) The value of a is 3.14. (C) The value of b is 2.00. (D) The value of a is 3.141. (E) The value of a is 3.1415. (F) The value of a is 3.1416. (G)The value of b is 2.0000.
#415280
176. Place the code fragments into position to produce the output: true true false CodeScanner scanner = new Scanner("One,5,true,3,true,6,7,false'');scanner.useDelimiter(",");
#415281
179. Place the Relations on their corresponding Implementation Structures. Note Not all Implementation Structures will be used.
#415282
180. Place the correct description of the compiler output on the code fragments to be inserted at lines 4 and 5. The same compiler output may be used more than once.
#415283
181. Place code into the class so that it compiles and generates the output answer = 42. Note: Code options may be used more than once.
#415284
182. Given the class definitions:
#415285