Oracle 1z0-809認定試験を通して自分を向上させるあなたは短い時間で1z0-809試験に合格できるために、我々は多くの時間と労力を投資してあなたにOracleの1z0-809試験を開発しますから、我々の提供する商品はIT認定試験という分野で大好評を得ています。だからこそ、我々はCertShikenの問題集に自信があります。自信があるから、我々は失敗返金ということを承諾します。
試験は、150分以内に回答する必要がある80の多肢選択および複数選択問題で構成されています。これらの問題は、Java SE 8の機能(関数型プログラミング、並行処理、データベースアクセス、I/Oストリーム、コレクションなど)に関する候補者の知識をテストするように設計されています。試験には、Javaのセキュリティ、ローカリゼーション、および展開に関する問題も含まれます。 Oracle Java SE 8 Programmer II 認定 1z0-809 試験問題 (Q170-Q175):質問 # 170
Given the code fragments :
and
What is the result?
A. The program prints nothing.
B. A compilation error occurs.
C. TV Price :1000 Refrigerator Price :2000
D. TV Price :110 Refrigerator Price :2100
正解:D
質問 # 171
Given the code fragment:
public class ForTest {
public static void main(String[] args) {
int[] arrar = {1,2,3};
for ( foo ) {
}
}
}
Which three are valid replacements for foo so that the program will compiled and run?
A. ; i < 1;
B. ; i < 1; i++
C. int i = 0; i < 1; i++
D. int i: array
E. ;;
正解:C、D、E
質問 # 172
Given:
Which two interfaces can you use to create lambda expressions? (Choose two.)
A. P
B. T
C. U
D. R
E. S
F. Q
正解:A、E
質問 # 173
Given the definition of the Emp class:
public class Emp
private String eName;
private Integer eAge;
Emp(String eN, Integer eA) {
this.eName = eN;
this.eAge = eA;
}
public Integer getEAge () {return eAge;}
public String getEName () {return eName;}
}
and code fragment:
List<Emp>li = Arrays.asList(new Emp("Sam", 20), New Emp("John", 60), New Emp ("Jim", 51)); Predicate<Emp> agVal = s -> s.getEAge() > 50; //line n1 li = li.stream().filter(agVal).collect(Collectors.toList()); Stream<String> names = li.stream()map.(Emp::getEName); //line n2 names.forEach(n -> System.out.print(n + " ")); What is the result?
A. Sam John Jim
B. A compilation error occurs at line n2.
C. A compilation error occurs at line n1.
D. John Jim
正解:D
質問 # 174
Given the code fragment:
List<String> str = Arrays.asList ("my", "pen", "is", "your', "pen");
Predicate<String> test = s -> {
int i = 0;
boolean result = s.contains ("pen");
System.out.print(i++) + ":");
return result;
};
str.stream()
.filter(test)
.findFirst()
.ifPresent(System.out ::print);
What is the result?
0 : 0 : pen