究極のガイド準備1z0-808認証試験Java and Middlewareは2024年更新
リアル1z0-808問題集でOracle正確なアンサーは最新問題は2024年更新
Oracle 1Z0-808認定試験は、150分以内に完了する必要がある70の複数選択質問で構成されています。この試験はいくつかの言語で入手でき、自分の家やオフィスの快適さからテストセンターまたはオンラインで対応できます。試験に合格した候補者は、Oracle認定アソシエイトであるJava SE 8プログラマー認定を受け取ります。
Oracle 1Z0-808試験では、Javaの基本、データ型、オペレーター、制御構造、配列、クラスなど、幅広いトピックをカバーしています。また、カプセル化、相続、多型、抽象化などのトピックも含まれています。この試験では、候補者がJavaプログラミング言語、その構文、およびそのアプリケーションをさまざまなコンテキストで確実に理解する必要があります。
質問 # 167
Given the code fragment:
What is the result?
- A. 0
- B. Compilation fails
- C. 1
- D. 2
- E. 3
正解:B
質問 # 168
Given the code fragment:
What is the result?
- A. Compilation fails.
- B. A NullPointerException is thrown at runtime.
- C. [1, 3, 4, null]
- D. [1, 3, 4]
- E. [1, 2, 4]
- F. [1, 2, 4, null]
正解:E
質問 # 169
Given the code fragment:
What is the result if the integer aVar is 9?
- A. Hello World!
- B. 10 Hello World!
- C. Hello Universe!
- D. Compilation fails.
正解:B
質問 # 170
Given the code fragment:
class Student {
int rollnumber;
String name;
List cources = new ArrayList();
// insert code here
public String toString() {
return rollnumber + " : " + name + " : " + cources;
}
}
And,
public class Test {
public static void main(String[] args) {
List cs = newArrayList();
cs.add("Java");
cs.add("C");
Student s = new Student(123,"Fred", cs);
System.out.println(s);
}
}
Which code fragment, when inserted at line // insert code here, enables class Test to print
123 : Fred : [Java, C]?
- A. Student(int i, String name, ArrayList cs) {
/* initialization code goes here */
} - B. Student(int i, String name, List cs) {
/* initialization code goes here */
} - C. private Student(int i, String name, List cs) {
/* initialization code goes here */
} - D. public void Student(int i, String name, List cs) {
/* initialization code goes here */
}
正解:B
解説:
Incorrect:
Not A: Student has private access line: Student s = new Student(123,"Fred", cs);
Not D: Cannot be applied to given types. Line: Student s = new Student(123,"Fred", cs);
質問 # 171
Given:
What is the result?
- A. Paildrome
- B. Mom
- C. Compilation fails
- D. Wow
- E. The code compiles, but does not execute.
正解:E
質問 # 172
Which of the following data types will allow the following code snippet to compile?
- A. double
- B. byte
- C. int
- D. long
- E. float
正解:A、E
解説:
Option B and D are the correct answer.
Since the variables I and j are floats, resultant will be float type too. So we have to use float
or primitive type which can hold float, such a primitive type is double, it has wider range
and also can hold floating point numbers, hence we can use double or float for the blank.
As explained above options B and D are correct.
long and int can't be used with floating point numbers so option A is incorrect.
Option E is incorrect as it have smaller range and also can't be used with floating point
numbers.
hnpsy/docs.oracle.com/javase/tutorial/java/javaOO/variables.html
質問 # 173
Given the code fragment:
What is the result?
- A. An IndexOutOfBoundsException is thrown at runtime.
- B. [green, blue, yellow, cyan]
- C. [green, red, yellow, cyan]
- D. [green, red, cyan, yellow]
正解:A
質問 # 174
Given:
And given the code fragment:
What is the result?
- A. Compilation fails at line n1.
- B. Read Book
- C. Compilation fails at line n2.
- D. Read E-Book
- E. Compilation fails at line n3.
正解:B
質問 # 175
Given:
What is the result?
- A. Option B
- B. Option D
- C. Option A
- D. Option C
正解:A
質問 # 176
Given:
What is the result?
- A. Area is 3.0
- B. Compilation fails at line n1
- C. Compilation fails at line n2.
- D. Area is 6.0
正解:C
質問 # 177
Given the following class:
Which three pieces of code, when inserted independently, set the value of amount to 100?
- A. Option F
- B. Option B
- C. Option D
- D. Option C
- E. Option A
- F. Option E
正解:B、D、F
質問 # 178
Given:
What is the result?
Base
- A. DerivedB
- B. DerivedA
Base - C. DerivedB
DerivedA - D. DerivedB
DerivedB - E. A ClassCastExceptionis thrown at runtime.
正解:C
解説:
Explanation/Reference:
質問 # 179
Given:
And given the code fragment:
What is the result?
- A. Compilation fails at line n1.
- B. Compilation fails at line n2.
- C. Read Book
- D. Read E-Book
- E. Compilation fails at line n3.
正解:E
質問 # 180
Given the code fragments:
Which modification enables the code to compile?
- A. Replace line n1 with: import p1.*;Replace line n2 with: import p1.p2.*;
- B. Replace line n1 with: import p1.A;Replace line n2 with: import p1.A;import p1.p2.B;
- C. Replace line n1 with: import p1;Replace line n2 with: import p1;import p1.p2;
- D. Replace line n1 with: import p1.A;Replace line n2 with: import p1.*;
正解:A
質問 # 181
Given the following array:
Which two code fragments, independently, print each element in this array?
- A. Option F
- B. Option B
- C. Option D
- D. Option A
- E. Option C
- F. Option E
正解:B、F
質問 # 182
Given:
What is the result?
- A. An exception is thrown at runtime
- B. String main 1
- C. int main 1
- D. Compilation fails
- E. Object main 1
正解:B
質問 # 183
Given:
And:
What is the result?
- A. ns = 50 s = 125
ns = 125 s = 125
ns = 0 s = 125 - B. ns = 50 s = 50
ns = 125 s = 125
ns = 0 s = 125 - C. ns = 100 s =125
ns = 0 s = 125
ns = 125 s = 125 - D. ns = 50 s = 50
ns = 125 s =125
ns = 100 s =100
正解:A
質問 # 184
Given:
And given the commands:
javac Test.java
java Test TRUE null
What is the result?
- A. true true
- B. false false
- C. true false
- D. AClassCastExceptionis thrown at runtime.
- E. TRUE null
正解:A
質問 # 185
Given the code fragment:
What is the result?
- A. Jesse 25Walter 52
- B. Compilation fails at both line n1 and line n2
- C. Compilation fails only at line n1
- D. Compilation fails only at line n2
正解:B
質問 # 186
Given the code fragment:
What is the result?
- A. [1, 3, 4 ]
- B. Compilation fails.
- C. A NullPointerException is thrown at runtime.
- D. [1, 3, 4, null ]
- E. [1, 2, 4, null ]
- F. [1, 2, 4]
正解:F
解説:
質問 # 187
Given the code snippet from a compiled Java source file:
Which command-line arguments should you pass to the program to obtain the following output?
Arg is 2
- A. java MyFile 0 1 2 3
- B. java MyFile 1 2 2 3 4
- C. java MyFile 2 2 2
- D. java MyFile 1 3 2 2
正解:D
質問 # 188
You are asked to create a method that accepts an array of integers and returns the highest value from that array.
Given the code fragment:
Which method signature do you use at line n1?
- A. static int[] findMax (int max)
- B. public int findMax (int [] numbers)
- C. final int findMax (int [] )
- D. static int findMax (int [] numbers)
正解:B
質問 # 189
......
Java and Middleware 1z0-808試験練習問題集:https://www.passtest.jp/Oracle/1z0-808-shiken.html
1z0-808プレミアム資料テストPDFで無料問題集お試しセット:https://drive.google.com/open?id=1mMd7a-ADh1alr79uEaBmrkZZeiaCcf3N