1z0-809 Korean 無料問題集「Oracle Java SE 8 Programmer II (1z0-809 Korean Version)」

주어진:

및 코드 조각:

결과는 무엇입니까?

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

Customers.txt에 액세스할 수 있고 여러 줄을 포함한다고 가정합니다.
다음 중 customers.txt 파일의 내용을 인쇄하는 코드 조각은 무엇입니까?

주어진:
interface Rideable {Car getCar (String name); }
class Car {
private String name;
public Car (String name) {
this.name = name;
}
}
어떤 코드 조각이 Car 인스턴스를 생성합니까?

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

Book 클래스의 정의가 주어지면:

Book 클래스에 대한 설명으로 옳은 것은?

주어진:
클래스 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라고 가정합니다.
어떤 말이 진실이야?

주어진 코드 조각:
UnaryOperator<Double> uo1 = s -> s*2;//라인 n1
List<Double> loanValues ​​= Arrays.asList(1000.0, 2000.0);
대출값.stream()
.filter(lv -> lv >= 1500)
.map(lv -> uo1.apply(lv))//line n2
.forEach(s -> System.out.print(s + " "));
결과는 무엇입니까?

주어진:
public class Customer {
private String fName;
private String lName;
private static int count;
public customer (String first, String last) {fName = first, lName = last;
++count;}
static { count = 0; }
public static int getCount() {return count; }
}
public class App {
public static void main (String [] args) {
Customer c1 = new Customer("Larry", "Smith");
Customer c2 = new Customer("Pedro", "Gonzales");
Customer c3 = new Customer("Penny", "Jones");
Customer c4 = new Customer("Lars", "Svenson");
c4 = null;
c3 = c2;
System.out.println (Customer.getCount());
}
}
결과는 무엇입니까?

주어진 코드 조각:

그리고

emps 목록의 요소를 정렬할 수 있는 두 가지 수정 사항은 무엇입니까? (2개를 선택하세요.)

正解:A、E 解答を投票する

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡