2026年最新の1z0-809日本語試験資料1z0-809日本語学習ガイド
お手軽に合格させる1z0-809日本語試験にはこちらが提供する問題集PDFテストエンジン
質問 # 57
Given:
どのオプションが失敗しますか?
- A. Foo <String、String> pair = Foo。<String> twice( "Hello World!");
- B. Foo <String、String> grade = new Foo <>( "John"、 "A");
- C. Foo <Object、Object>パーセンテージ= new Foo <String、Integer>( "Steve"、100);
- D. Foo <String、Integer> mark = new Foo <String、Integer>( "Steve"、100);
正解:D
質問 # 58 


- A. Option C
- B. Option D
- C. Option B
- D. Option A
正解:C
質問 # 59
与えられた:
どのオプションが失敗しますか?
- A. Foo<String, Integer> mark = new Foo<Object, Object> ("Steve", 100);
- B. Foo<String, String> grade = new Foo <> ("John", "A");
- C. Foo<String, String> pair = Foo.<String>twice ("Hello World!");
- D. Foo<Object, Object> percentage = new Foo<Object, Object>("Steve", 100);
正解:D
質問 # 60 



- A. 15 $
- B. USD $15
- C. $15.00
- D. USD 15.00
正解:C
質問 # 61 
public class country {
public enum Continent {ASIA, EUROPE}
String name;
Continent region;
public Country (String na, Continent reg) {
name = na, region = reg;
}
public String getName () {return name;}
public Continent getRegion () {return region;}
}
and the code fragment:
List<Country> couList = Arrays.asList (
new Country ("Japan", Country.Continent.ASIA),
new Country ("Italy", Country.Continent.EUROPE),
new Country ("Germany", Country.Continent.EUROPE));
Map<Country.Continent, List<String>> regionNames = couList.stream ()
.collect(Collectors.groupingBy (Country ::getRegion,
Collectors.mapping(Country::getName, Collectors.toList()))));
System.out.println(regionNames);
- A. {EUROPE = [Italy, Germany], ASIA = [Japan]}
- B. {ASIA = [Japan], EUROPE = [Italy, Germany]}
- C. {EUROPE = [Germany, Italy], ASIA = [Japan]}
- D. {EUROPE = [Germany], EUROPE = [Italy], ASIA = [Japan]}
正解:B
質問 # 62 
Map<Integer, String> books = new TreeMap<>();
books.put (1007, "A");
books.put (1002, "C");
books.put (1001, "B");
books.put (1003, "B");
System.out.println (books);
- A. {1007 = A, 1002 = C, 1001 = B, 1003 = B}
- B. {1002 = C, 1003 = B, 1007 = A}
- C. {1001 = B, 1002 = C, 1003 = B, 1007 = A}
- D. {1007 = A, 1001 = B, 1003 = B, 1002 = C}
正解:D
質問 # 63 
class UserException extends Exception { }
class AgeOutOfLimitException extends UserException { }
and the code fragment:
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. Option A
- B. Option C
- C. Option D
- D. Option B
正解:A
質問 # 64
与えられたコード断片:
public void recDelete (String dirName) throws IOException {
File [ ] listOfFiles = new File (dirName) .listFiles();
if (listOfFiles ! = null && listOfFiles.length >0) {
for (File aFile : listOfFiles) {
if (aFile.isDirectory ()) {
recDelete (aFile.getAbsolutePath ());
} else { if (aFile.getName ().endsWith (".class")) aFile.delete (); } } } }
Assume that Projects contains subdirectories that contain .class files and is passed as an argument to the recDelete () method when it is invoked.
結果は何ですか?
- A. この方法は、IOExceptionを投げます.
- B. この方法は、プロジェクトコンテンツ.を削除しかない.
- C. この方法は、プロジェクトコンテンツにどんな変化でも実行して、作りません.
- D. この方法は、すべてのプロジェクトディレクトリおよびそのコンテンツ.を削除する
正解:D
質問 # 65
与えられた:
final class Folder {//line n1 //line n2 public void open () { System.out.print("Open"); } } public class Test { public static void main (String [] args) throws Exception { try (Folder f = new Folder()) { f.open(); } } } どの二つ修正は、コードがオープンCloseを印刷するのを可能にします?
- A. . 線n1を入れ替え:
クラス・フォルダは、Exceptionを広げます { - B. . 線n2で、挿入してください:
public void close () throws IOException {
System.out.print("Close"); - C. 線n1を入れ替え:
クラス・フォルダは、AutoCloseableを実行します { - D. . 線n1を入れ替え:
クラス・フォルダは、Closeableを広げます { - E. 線n2で、挿入してください:
最後の空所終わり() {
System.out.print("Close");
}
正解:B、C
質問 # 66 
結果は何ですか?
- A. 7行目でコンパイルエラーが発生します。
- B. 0
- C. 8行目でコンパイルエラーが発生します。
- D. 15行目でコンパイルエラーが発生します。
正解:A
質問 # 67 
1.abstract class Shape {
2.Shape ( ) { System.out.println ("Shape"); }
3.protected void area ( ) { System.out.println ("Shape"); }
4.}
5.6.
class Square extends Shape {
7.int side;
8.Square int side { 9./* insert code here */
10.
this.side = side;
11.
}
12.
public void area ( ) { System.out.println ("Square"); }
13.
}
14.
class Rectangle extends Square {
15.
int len, br;
16.
Rectangle (int x, int y) {
17.
/* insert code here */
18.
len = x, br = y;
19.
}
20.
void area ( ) { System.out.println ("Rectangle"); }
21.
}
- A. Option E
- B. Option F
- C. Option C
- D. Option D
- E. Option A
- F. Option B
正解:C、D
質問 # 68
与えられたコード断片:
Path file = Paths.get ("courses.txt"); // line n1
コースを仮定しなさい.txtはアクセス可能である。
コースファイルを印刷するのを可能にするために、どのコード断片が、線n1で挿入されることができます?
- A. List<String> fc = Files.list(file); fc.stream().forEach (s - > System.out.println(s));
- B. Stream<String> fc = Files.lines (file); fc.forEach (s - > System.out.println(s));
- C. List<String> fc = readAllLines(file); fc.stream().forEach (s - > System.out.println(s));
- D. Stream<String> fc = Files.readAllLines (file); fc.forEach (s - > System.out.println(s));
正解:B
質問 # 69 
- A. Option E
- B. Option C
- C. Option B
- D. Option D
- E. Option A
正解:C、D
質問 # 70 
interface Doable {
public void doSomething (String s);
}
- A. public class Action implements Doable {
public void doSomething(Integer i) { }
public String doThis(Integer j) { }
} - B. public class Job implements Doable {
public void doSomething(Integer i) { }
} - C. public abstract class Task implements Doable {
public void doSomethingElse(String s) { }
} - D. public abstract class Work implements Doable {
public abstract void doSomething(String s) { }
public void doYourThing(Boolean b) { }
} - E. public class Do implements Doable {
public void doSomething(Integer i) { }
public void doSomething(String s) { }
public void doThat (String s) { }
}
正解:C、E
質問 # 71
コードの断片を考えると:
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/log/sys
/server/exe/readme - B. /app/./sys/log
/server/exe/readme - C. /app/sys/log
/readme/server/exe - D. /app/./sys/log
/readme
正解:D
質問 # 72
与えられたコードの断片:
interface CourseFilter extends Predicate<String> {
public default boolean test (String str) {
return str.equals ("Java");
}
}
and
List<String> strs = Arrays.asList("Java", "Java EE", "Java ME");
Predicate<String> cf1 = s - > s.length() > 3;
Predicate cf2 = new CourseFilter() { //line n1
public boolean test (String s) {
return s.contains ("Java");
}
};
long c = strs.stream()
.filter(cf1)
.filter(cf2//line n2
.count();
System.out.println(c);
結果は何ですか??
- A. 0
- B. 1
- C. 編集エラーは、線n2で発生します。
- D. 編集エラーは、線n1で発生します。
正解:A
質問 # 73
Given:
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();
} catch (Exception e) {
System.out.print(e.getMessage());
}
結果は何ですか?
- A. Scan.Printer closed. Scanner closed. Unable to scan.
- B. Scan. Unable to scan. Printer closed.
- C. Scan.Scanner closed. Unable to scan.
- D. Scan. Unable to scan.
正解:A
質問 # 74
コードの断片を考えます:
と仮定する:
必要なデータベースドライバはクラスパスに設定されています。
dbURL、userName、およびpassWordを使用して適切なデータベースにアクセスできます。そして、passWordが存在します。Employeeテーブルはinteger型の列IDを持ち、SQLクエリは1つのレコードと一致します。
結果はどうですか?
- A. コードは従業員IDを印刷します。
- B. コンパイルは14行目で失敗します。
- C. 15行目でコンパイルが失敗する。
- D. コードはエラーを表示します。
正解:B
質問 # 75
Given:

- A. Compilation fails.
- B. 10 20 30 40
- C. An exception is thrown at runtime.
- D. 0 0 30 40
正解:D
質問 # 76 
public class MainMethod {
void main() {
System.out.println("one");
}
static void main(String args) {
System.out.println("two");
}
public static void main(String[] args) {
System.out.println("three");
}
void mina(Object[] args) {
System.out.println("four");
}
}
- A. 0
- B. 1
- C. 2
- D. 3
正解:A
質問 # 77
Bookクラスの定義を考えると:
Bookクラスについて正しい記述はどれですか?
- A. It is an immutable class.
- B. It is defined using the factory design pattern.
- C. It is defined using the singleton design pattern.
- D. It demonstrates encapsulation.
- E. It demonstrates polymorphism.
正解:D
質問 # 78
コードの断片を考えます:
1,2; 1,10; 2,20;を印刷するために、どのステートメントを行n1に挿入することができますか。
- A. BiFunction<Integer, Integer, String> c = (i, j) -> {System.out.print (i + "," + j+ "; ")};
- B. BiConsumer<Integer, Integer, String> c = (i, j) -> {System.out.print (i + "," + j+ "; ")};
- C. BiConsumer<Integer,Integer> c = (i, j) -> {System.out.print (i + "," + j+ ";
");}; - D. BiConsumer<Integer, Integer, Integer> c = (i, j) -> {System.out.print (i + ","
+ j+ "; ");};
正解:A
質問 # 79
コードの断片を考えると:
どの変更により、コードはPrice 5 New Price 4を印刷できますか?
- A. Replace line n1 with .forEach (e -> System.out.print ("Price" + e))
- B. Replace line n2 with .map (n -> System.out.println ("New Price" + n -1)) and remove line n3
- C. Replace line n3 with .forEach (n -> System.out.println ("New Price" + n));
- D. Replace line n2 with .mapToInt (n -> n - 1);
正解:C
質問 # 80
STUDENTtableのレコードを考えると:
コードの断片を考えると:
Assume that the URL, username,and passwordare valid.
What is the result?
- A. A SQLException is thrown at run time.
- B. The STUDENT table is not updated and the program prints:
114 : John : [email protected] - C. The STUDENT table is updated with the record:
113 : Jannet : [email protected]
and the program prints:
113 : Jannet : [email protected] - D. The STUDENT table is updated with the record:
113 : Jannet : [email protected]
and the program prints:
114 : John : [email protected]
正解:B
質問 # 81
Given:

- A. Compilation fails.
- B. null
Richard
Donald - C. An ArrayIndexOutOfBoundsException is thrown at runtime.
- D. A NullPointerException is thrown at runtime.
- E. Richard
Donald
正解:D
質問 # 82
......
1z0-809日本語のPDFで合格させるスゴ問題集で1z0-809日本語最新のリアル試験問題:https://jp.fast2test.com/1z0-809-JPN-premium-file.html