1z0-809 試験問題 96

プリミティブ データ型の 2 次元配列について正しい 2 つのステートメントはどれですか。
  • 1z0-809 試験問題 97

    与えられた条件:

    そしてコードフラグメント:

    結果はどうなりましたか?
  • 1z0-809 試験問題 98

    Given the code fragment:
    List<String> nL = Arrays.asList("Jim", "John", "Jeff");
    Function<String, String> funVal = s -> "Hello : ".concat(s);
    nL.Stream()
    .map(funVal)
    .forEach(s-> System.out.print (s));
    What is the result?
  • 1z0-809 試験問題 99

    与えられた条件:
    クラス 学生 {
    文字列コース、名前、都市;
    public Student (String name, String course, String city) {
    this.course = コース; this.name = 名前; this.city = 都市;
    }
    パブリック文字列toString() {
    コース + ":" + 名前 + ":" + 都市を返します。
    }
    public String getCourse() {コースを返します;}
    パブリック文字列 getName() {名前を返します;}
    public String getCity() {return city;}
    そしてコードフラグメント:
    リスト<学生> stds = Arrays.asList(
    新入生(「Jessy」、「Java ME」、「Chicago」)
    新入生(「ヘレン」、「Java EE」、「ヒューストン」)
    新しい生徒 ("Mark", "Java ME", "Chicago"));
    stds.stream()
    .collect(Collectors.groupingBy(Student::getCourse))
    .forEach(src, res) -> System.out.println(res));
    結果はどうなりましたか?
  • 1z0-809 試験問題 100

    Given the code fragments:
    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);
    }
    What is the result?