1z0-809-KR 문제 86

주어진:
인터페이스 실행 가능 {
공개 무효 doSomething(문자열 s);
}
어떤 두 클래스 정의가 컴파일됩니까? (2개를 선택하세요.)

1z0-809-KR 문제 87

주어진:
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 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));
결과는 무엇입니까?

1z0-809-KR 문제 88

Operator.java, EngineOperator.java 및 Engine.java 파일의 내용이 주어지면:

및 코드 조각:

결과는 무엇입니까?

1z0-809-KR 문제 89

주어진:

및 코드 조각:

결과는 무엇입니까?

1z0-809-KR 문제 90

주어진:
IntStream stream = IntStream.of (1,2,3);
IntFunction<Integer> inFu= x -> y -> x*y;//line n1
IntStream newStream = stream.map(inFu.apply(10));//line n2
newStream.forEach(System.out::print);
코드 조각을 컴파일할 수 있는 수정 사항은 무엇입니까?