1z0-809-KR 문제 41

주어진 코드 조각:
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(책);
결과는 무엇입니까?

1z0-809-KR 문제 42

주어진:

그리고 코드 조각:

ColorSorter 클래스의 어떤 정의가 블록 목록을 정렬합니까?

1z0-809-KR 문제 43

주어진:
클래스 Sum extends RecursiveAction { //라인 n1
정적 최종 정수 THRESHOLD_SIZE = 3;
정수 stIndex, lstIndex;
정수 [ ] 데이터;
public Sum (int [ ]data, int start, int end) {
this.data = data;
this stIndex = start;
this. lstIndex = end;
}
protected void compute ( ) {
int sum = 0;
if (lstIndex - stIndex <= THRESHOLD_SIZE) {
for (int i = stIndex; i < lstIndex; i++) {
sum += data [i];
}
System.out.println(sum);
} else {
new Sum (data, stIndex + THRESHOLD_SIZE, lstIndex).fork( );
new Sum (data, stIndex,
Math.min (lstIndex, stIndex + THRESHOLD_SIZE)
).compute ();
}
}
}
및 코드 조각:
ForkJoinPool fjPool = 새로운 ForkJoinPool( );
정수 데이터 [ ] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
fjPool.invoke(새로운 합계(데이터, 0, 데이터 길이));
1부터 10까지의 모든 정수의 합은 55라고 가정합니다.
어떤 말이 진실이야?

1z0-809-KR 문제 44

주어진:

및 코드 조각:

n1행에 독립적으로 삽입될 때 코드가 TruckCarBike를 인쇄할 수 있도록 하는 두 개의 코드 조각은 무엇입니까?

1z0-809-KR 문제 45

이러한 파일이 존재하고 액세스할 수 있는 경우:

코드 조각이 주어지면 :

코드가 /company/emp만 인쇄할 수 있도록 하기 위해 n1행에 어떤 코드 조각을 삽입할 수 있습니까?