Actual4Test http://www.actual4test.com Actual4test - actual test exam dumps-pass for IT exams
Exam : 1z0-809 日本語 (JPN) Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO 1 / 8 Get Latest & Valid 1z0-809-JPN Exam's Question and Answers from Actual4test.com. 1
NO.1 与えられたコード断片 : int b = 3; if (!(b > 3)) { System.out.println("square "); else { System.out.println("circle "); System.out.println("..."); A. サークル... B. 円 C. 四角い... D. 編集物は故障する Answer: C NO.2 与えられたコード断片 : class CallerThread implements Callable<String> { String str; public CallerThread(String s) {this.str=s; public String call() throws Exception { return str.concat("call"); and public static void main (String[] args) throws InterruptedException, ExecutionException { ExecutorService es = Executors.newFixedThreadPool(4); //line n1 Future f1 = es.submit (newcallerthread("call")); String str = f1.get().tostring(); System.out.println(str); A. プログラムは呼び出し呼び出しをプリントし 終わる B. プログラムは呼び出し呼び出しをプリントし 終わらない C. A 編集エラーは 線 n1 で発生する D. ExecutionException は 動く時間に投げられる Answer: B NO.3 与えられる : class UserException extends Exception { class AgeOutOfLimitException extends UserException { and the code fragment: 2 / 8 Get Latest & Valid 1z0-809-JPN Exam's Question and Answers from Actual4test.com. 2
class App { public void doregister(string name, int age) throws UserException, AgeOutOfLimitException { if (name.length () < 6) { throw new UserException (); else if (age >= 60) { throw new AgeOutOfLimitException (); else { System.out.println("User is registered."); public static void main(string[ ] args) throws UserException { App t = new App (); t.doregister("mathew", 60); A. ユーザーは登録される B. AgeOutOfLimitException は投げられる C. UserException は投げられる D. A 編集エラーは 主要な方法で発生する Answer: A NO.4 与えられる : class ImageScanner implements AutoCloseable { public void close () throws Exception { System.out.print ("Scanner closed."); public void scanimage () throws Exception { System.out.print ("Scan."); throw new Exception("Unable to scan."); class ImagePrinter implements AutoCloseable { public void close () throws Exception { System.out.print ("Printer closed."); public void printimage () {System.out.print("Print."); and this code fragment: try (ImageScanner ir = new ImageScanner(); ImagePrinter iw = new ImagePrinter()) { ir.scanimage(); iw.printimage(); 3 / 8 Get Latest & Valid 1z0-809-JPN Exam's Question and Answers from Actual4test.com. 3
catch (Exception e) { System.out.print(e.getMessage()); A. Scan.Printer は閉まった スキャナは閉まった 走査することができない B. Scan.Scanner は閉まった 走査することができない C. 走査することができない D. 走査することができない プリンタは閉まった Answer: B NO.5 与えられる : Which two classes use the shape class correctly? 4 / 8 Get Latest & Valid 1z0-809-JPN Exam's Question and Answers from Actual4test.com. 4
A. オプション A B. オプション B C. オプション C D. オプション D E. オプション E F. オプション F Answer: B,E Explanation: When an abstract class is subclassed, the subclass usually provides implementations for all of the abstract methods in its parent class (E). However, if it does not, then the subclass must also be declared abstract (B). Note: An abstract class is a class that is declared abstract-it may or may not include abstract methods. Abstract classes cannot be instantiated, but they can be subclassed. NO.6 与えられたコード断片 : Path path1 = Paths.get("/app/./sys/"); Path res1 = path1.resolve("log"); Path path2 = Paths.get("/server/exe/"); Path res1 = path1.resolve("/readme/"); System.out.println(res1); System.out.println(res2); A. /app/sys/log /readme/server/exe B. /app/log/sys /server/exe/readme C. /app/./sys/log /readme D. /app/./sys/log /server/exe/readme Answer: D NO.7 どの二つ声明が 精励を局所化することについて真実であるか? A. 新しい地域言語のサポートにより再コンパイルは code. に要求されない B. 原文の要素 ( メッセージと GUI ラベル ) は コードでハードコードされている C. 言語と地域に特有のプログラムは 局所的なデータを使用して作成される D. 資源のバンドル? ファイルは データと通貨情報を含む E. 言語コードは小文字を使う そして 地域コードは大文字の手紙を使う Answer: A,E Reference: http://docs.oracle.com/javase/7/docs/technotes/guides/intl/ NO.8 与えられたコード断片 : class TechName { String techname; TechName (String techname) { this.techname=techname; and 5 / 8 Get Latest & Valid 1z0-809-JPN Exam's Question and Answers from Actual4test.com. 5
List<TechName> tech = Arrays.asList ( new TechName("Java-"), new TechName("Oracle DB-"), new TechName("J2EE-") ); Stream<TechName> stre = tech.stream(); //line n1 Java Oracle DB-J2EE-をプリントするために どれがライン n1 に挿入されるべきであるか? A. stre.foreach(system.out:: 印刷 ); B. stre.map.foreach(a-> a.techname)( System.out:: 印刷 ); C. stre.map.foreachordered(a-> a)( System.out:: 印刷 ); D. stre.foreachordered(system.out:: 印刷 ); Answer: C NO.9 どの 3 つのステートメントがカプセル化の利点であるか? A. t を変更せずにクラスインプリメンテーションが変わることを可能にする B. 秘密のデータを物の漏れることから保護する C. コードが例外を起こすことを防止する D. クラス実施がその不変量を保護するのを可能にします E. 許可証クラスは 同じパッケージに結合されることになっています F. 同じ気品の複数の例が問題なくつくられるのを可能にします Answer: A,B,D NO.10 与えられたコードの断片 : class Caller implements Callable<String> { String str; public Caller (String s) {this.str=s; public String call()throws Exception { return str.concat ("Caller"); class Runner implements Runnable { String str; public Runner (String s) {this.str=s; public void run () { System.out.println (str.concat ("Runner")); and public static void main (String[] args) InterruptedException, ExecutionException { ExecutorService es = Executors.newFixedThreadPool(2); Future f1 = es.submit (new Caller ("Call")); Future f2 = es.submit (new Runner ("Run")); String str1 = (String) f1.get(); String str2 = (String) f2.get();//line n1 System.out.println(str1+ ":" + str2); 6 / 8 Get Latest & Valid 1z0-809-JPN Exam's Question and Answers from Actual4test.com. 6
A. プログラム? プリント : Run Runner Call 発信者 :null そして プログラムはしない B. プログラムはしない : Run Runner Call 発信者 : Run C. A 編集エラーは 線 n1 で発生します D. Execution は 動く時間に投げられます Answer: A NO.11 与えられた : Class A { Class B { Interface X { Interface Y { 気品 C のどの二つ定義が 有効ですか? A. Class C extends A implements X { B. Class C implements Y extends B { C. Class C extends A, B { D. Class C implements X, Y extends B { E. Class C extends B implements X, Y { Answer: A,E Explanation: extends is for extending a class. implements is for implementing an interface. Java allows for a class to implement many interfaces. NO.12 Given the content of /resourses/message.properties: welcome1="good day!" and given the code fragment: Properties prop = new Properties (); FileInputStream fis = new FileInputStream ("/resources/message.properties"); prop.load(fis); System.out.println(prop.getProperty("welcome1")); System.out.println(prop.getProperty("welcome2", "Test"));//line n1 System.out.println(prop.getProperty("welcome3")); What is the result? A. 良い一日! テストその後に Exception スタックトレースが続きます B. 良い一日! その後に Exception スタックトレースが続きます C. 良い一日! Test 7 / 8 Get Latest & Valid 1z0-809-JPN Exam's Question and Answers from Actual4test.com. 7
null D. 編集エラーは 線 n1 で発生します Answer: D 8 / 8 Get Latest & Valid 1z0-809-JPN Exam's Question and Answers from Actual4test.com. 8