Oracle Java SE 8 Programmer II (1z0-809日本語版) - 1z0-809日本語 Exam Practice Test

java.util.stream.Streamについて正しい記述はどれですか?

Correct Answer: C Vote an answer
与えられた:

and the code fragment:

スレッドt1とt2は非同期に実行され、ABCAまたはAACBを出力する可能性があります。
スレッドを同期的に実行してABCを出力するようにコードを変更するように求められました。
どの修正が要件を満たしていますか?

Correct Answer: A Vote an answer
コードの断片を考えると:

そして

結果は何ですか?

Correct Answer: C Vote an answer
このコードを考えると、

このクラスがインスタンス化されテストされた後、正しい 2 つはどれですか?

Correct Answer: A,B Vote an answer

結果は何ですか?

Correct Answer: D Vote an answer
コンテンツを考えると:

そして、コードの断片が与えられた:

どの2つのコードフラグメントが、行1に独立して挿入されたときに、コードの印刷を可能にしますか
"Wie geht's?"

Correct Answer: C,D Vote an answer
Given the definition of the Vehicle class:
class Vehicle {
String name;
void setName (String name) {
this.name = name;
}
String getName() {
return name;
}
}
Which action encapsulates the Vehicle class?

Correct Answer: F Vote an answer
コードの断片を考えると:
class TechName {
String techName;
TechName (String techName) {
this.techName=techName;
}
}
and
List<TechName> tech = Arrays.asList (
new TechName("Java-"),
new TechName("Oracle DB-"),
new TechName("J2EE-")
);
Stream<TechName> stre = tech.stream();
//line n1
Which should be inserted at line n1 to print Java-Oracle DB-J2EE-?

Correct Answer: C Vote an answer
コードの断片を考えると:

行1にどのステートメントを挿入して1,2を印刷できるか。 1,10; 2,20 ;?

Correct Answer: D Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
Given:
class RateOfInterest {
public static void main (String[] args) {
int rateOfInterest = 0;
String accountType = "LOAN";
switch (accountType) {
case "RD";
rateOfInterest = 5;
break;
case "FD";
rateOfInterest = 10;
break;
default:
assert false: "No interest for this account"; //line n1
}
System.out.println ("Rate of interest:" + rateOfInterest);
}
}
and the command:
java -ea RateOfInterest
What is the result?

Correct Answer: A Vote an answer
コードの断片を考えると:
Path file = Paths.get ("courses.txt");
// line n1
Assume the courses.txt is accessible.
Which code fragment can be inserted at line n1 to enable the code to print the content of the courses.txt file?

Correct Answer: A Vote an answer

Contact Us

If you have any question please leave me your email address, we will reply and send email to you in 12 hours.

Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday

Support: Contact now 

日本語 Deutsch 繁体中文 한국어