최신 1z0-809日本語 무료덤프 - Oracle Java SE 8 Programmer II (1z0-809日本語版)

Given the definition of the Employee class:

and this code fragment:

結果は何ですか?

정답: C
Given:
class Student {
String course, name, city;
public Student (String name, String course, String city) {
this.course = course; this.name = name; this.city = city;
}
public String toString() {
return course + ":" + name + ":" + city;
}
public String getCourse() {return course;}
public String getName() {return name;}
public String getCity() {return city;}
and the code fragment:
List<Student> stds = Arrays.asList(
new Student ("Jessy", "Java ME", "Chicago"),
new Student ("Helen", "Java EE", "Houston"),
new Student ("Mark", "Java ME", "Chicago"));
stds.stream()
.collect(Collectors.groupingBy(Student::getCourse))
.forEach(src, res) -> System.out.println(scr));
What is the result?

정답: A
Given:

どのオプションが失敗しますか?

정답: A
Given the code fragment:
List <Integer> values = Arrays.asList(1、2、3);
values.stream()
.map(n-> n * 2)// line n1
.peek(System.out :: print)// line n2
。カウント();
結果は何ですか?

정답: D
Given:
class FuelNotAvailException extends Exception { }
class Vehicle {
void ride() throws FuelNotAvailException {//line n1
System.out.println("Happy Journey!");
}
}
class SolarVehicle extends Vehicle {
public void ride () throws Exception {//line n2
super ride ();
}
}
and the code fragment:
public static void main (String[] args) throws FuelNotAvailException,
Exception {
Vehicle v = new SolarVehicle ();
v.ride();
}
Which modification enables the code fragment to print Happy Journey!?

정답: B
コードの断片を考えると:

結果は何ですか?

정답: B
Given:
public final class IceCream {
public void prepare() {}
}
public class Cake {
public final void bake(int min, int temp) {}
public void mix() {}
}
public class Shop {
private Cake c = new Cake ();
private final double discount = 0.25;
public void makeReady () { c.bake(10, 120); }
}
public class Bread extends Cake {
public void bake(int minutes, int temperature) {}
public void addToppings() {}
}
どちらの説明が正しいですか?

정답: D
Given:
interface Rideable {Car getCar (String name); }
class Car {
private String name;
public Car (String name) {
this.name = name;
}
}
どのコードフラグメントがCarのインスタンスを作成しますか?

정답: C
コードの断片を考えると:

Course enumの有効な定義はどれですか?

정답: A
Given:

and the code fragment:

What is the result?

정답: C
与えられた情報: 従業員テーブルには 10 件のレコードがあります。
次のコードフラグメントを考えてみましょう:

結果はどうなりましたか?

정답: C
コードの断片を考えると:

結果は何ですか?

정답: C
Given the code fragment:
public static void main (String[] args) throws IOException {
BufferedReader brCopy = null;
try (BufferedReader br = new BufferedReader (new
FileReader("employee.txt"))) { //
line n1
br.lines().forEach(c -> System.out.println(c));
brCopy = br;//line n2
}
brCopy.ready(); //line n3;
}
BufferedReaderのreadyメソッドが閉じたBufferedReaderで呼び出されたときに例外をスローし、employee.txtがアクセス可能で有効なテキストを含んでいると仮定します。
結果は何ですか?

정답: C
コードの断片を考えると:
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) throws 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);
}
結果は何ですか?

정답: A

우리와 연락하기

문의할 점이 있으시면 메일을 보내오세요. 12시간이내에 답장드리도록 하고 있습니다.

근무시간: ( UTC+9 ) 9:00-24:00
월요일~토요일

서포트: 바로 연락하기