2024年最新の有効な1z1-808試験最新問題で2024年最新の学習ガイド [Q184-Q209]

Share

2024年最新の有効な1z1-808試験最新問題で2024年最新の学習ガイド

1z1-808認定で究極のガイド [2024年更新]


この試験は、複数選択問題で構成され、Javaの基礎、Javaデータ型の扱い方、演算子と決定構造の使用、配列の作成と使用、およびメソッドとカプセル化の扱い方などのトピックに分かれています。Java API、例外処理、およびファイルとストリームの扱い方に関する質問も含まれています。


Java SE 8プログラマーI試験としても知られるOracle 1Z1-808試験は、基本的なJavaプログラミングの個人の知識とスキルを評価する認定試験です。この試験は、Javaプログラミングでキャリアを始めようとしている個人、またはフィールドでのスキルを検証したい人向けに設計されています。この試験では、Javaの基本、データ型、制御構造、クラスとオブジェクト、インターフェイス、Lambda式などを含む幅広いトピックをカバーしています。この試験に合格すると、Javaプログラミングで成功するために必要な知識とスキルがあることを潜在的な雇用主に示す素晴らしい方法です。

 

質問 # 184
Given the code fragment:

Which two modifications should you make so that the code compiles successfully?

  • A. Option E
  • B. Option B
  • C. Option D
  • D. Option A
  • E. Option C

正解:A


質問 # 185
Which three are advantages of the Java exception mechanism?

  • A. Improves the program structure because the error handling code is separated from the normal program function
  • B. Improves the program structure because exceptions must be handled in the method in which they occurred
  • C. Allows the creation of new exceptions that are tailored to the particular program being created
  • D. Improves the program structure because the programmer can choose where to handle exceptions
  • E. Provides a set of standard exceptions that covers all the possible errors

正解:A、C、D

解説:
Reference: http://javajee.com/introduction-to-exceptions-in-java


質問 # 186
Given the code fragment:

What is the result?

  • A.
  • B. Compilation fails only at line n1.
  • C. Compilation fails at both line n2 and line n3.
  • D. Compilation fails only at line n2.
  • E. Compilation fails only at line n3.

正解:E


質問 # 187
Given the code fragment:

Which code fragment, when inserted at line n1, enables the App class to print Equal?

  • A. Option B
  • B. Option D
  • C. Option A
  • D. Option C

正解:A


質問 # 188
Given the code fragment:

What is the result?

  • A. 1 3followed by an ArrayIndexOutOfBoundsException
  • B. 1 31 3
  • C. 1 31 3 0 0
  • D. 1 3 5 71 3
  • E. Compilation fails.

正解:B

解説:


質問 # 189
Given the code fragment:

What is the result?

  • A. A B C D E
  • B. A B C
  • C. Compilation fails.
  • D. A B D E

正解:D


質問 # 190
Given the code fragment:

What is the result?

  • A. 10 8 6 4 2 0
  • B. AnArithmeticException is thrown at runtime
  • C. 10 8 6 4 2
  • D. The program goes into an infinite loop outputting: 10 8 6 4 2 0. . .
  • E. Compilation fails

正解:C


質問 # 191
Given:

What three modifications, made independently, made to class greet, enable the code to compile and run?

  • A. import handy.dandy.*;added after line 1
  • B. Line 6 replaced with handy.dandy.keystroke stroke = new KeyStroke ( );
  • C. import handy.*;addedbeforeline 1
  • D. import handy.dandy.KeyStroke.typeException(); added before line 1
  • E. Line 6 replaced withhandy.dandy.KeyStroke Stroke = new handy.dandy.KeyStroke();
  • F. Line 6 replaced with handy.*.KeyStroke = new KeyStroke ( );
  • G. import handy.dandy,KeyStroke;added after line 1

正解:A、E、G

解説:
Three separate solutions:
C: the full class path to the method must be stated (when we have not imported the package) E: We can import the hold dandy class F: we can import the specific method


質問 # 192
Given the code fragment:
public class Test {
static String[][] arr =new String[3][];
private static void doPrint() {
//insert code here
}
public static void main(String[] args) {
String[] class1 = {"A","B","C"};
String[] class2 = {"L","M","N","O"};
String[] class3 = {"I","J"};
arr[0] = class1;
arr[1] = class2;
arr[2] = class3;
Test.doPrint();
}
}
Which code fragment, when inserted at line //insert code here, enables the code to print COJ?

  • A. int i = 0;
    for (String[] sub: arr[][]) {
    int j = sub.length;
    System.out.print(arr[i][j]);
    i++;
    }
  • B. int i = 0;
    for (String[] sub: arr) {
    int j = sub.length -1;
    for (String str: sub) {
    System.out.println(str[j]);
    i++;
    }
    }
  • C. private static void doPrint() {
    for (int i = 0;i < arr.length;i++) {
    int j = arr[i].length-1;
    System.out.print(arr[i][j]);
    }
    }
  • D. for (int i = 0;i < arr.length-1;i++) {
    int j = arr[i].length-1;
    System.out.print(arr[i][j]);
    i++;
    }

正解:C

解説:
Incorrect:
not A: The following line causes a compile error:
System.out.println(str[j]);
Not C: Compile erro line:
for (String[] sub: arr[][])
not D: Output: C


質問 # 193
Given a java source file:

What changes will make this code compile? (Select Two)

  • A. Adding the public modifier to the declaration of class x
  • B. Changing the private modifier on the declaration of the one() method to protected
  • C. Adding the protected modifier to the x() constructor
  • D. Removing the Y () constructor
  • E. Removing the private modifier from the two () method

正解:B、E

解説:
Using the private protected, instead of the private modifier, for the declaration of the one() method, would enable the two() method to access the one() method.


質問 # 194
Given the code fragment:

Which code fragment, when inserted at line n1, enables the App class to print Equal?

  • A. Option B
  • B. Option D
  • C. Option C
  • D. Option A

正解:D


質問 # 195
Given:

What is the result?

  • A. 0 1 2 0 1 2 0 1 2
  • B. 0 1 2
  • C. Compilation fails
  • D. 0

正解:B

解説:
table.length is 3. So the do-while loop will run 3 times with ii=0, ii=1 and ii=2.
The second while statement will break the do-loop when ii = 3.
Note: The Java programming language provides a do-while statement, which can be
expressed as follows:
do {
statement(s)
} while (expression);


質問 # 196
Given:

What is the result?

  • A. 10:20
  • B. 0:20
  • C. Compilation fails at line n2
  • D. Compilation fails at line n1

正解:C


質問 # 197
Given the code fragment:

What is the result?

  • A. 0
  • B. 1
  • C. 2
  • D. Compilation fails.

正解:C


質問 # 198
Given the code fragment:

Which code fragment, inserted at line n1, prints The Top element: 30?

  • A.
  • B.
  • C.
  • D.
  • E.

正解:A

解説:
Explanation


質問 # 199
Given the code fragment:

Which two modifications should you make so that the code compiles successfully? (Choose two.)

  • A. Option C
  • B. Option E
  • C. Option B
  • D. Option D
  • E. Option A

正解:A、B


質問 # 200
Given the code fragment:

What is the result?

  • A. A Work done
  • B. A B C D Work done
  • C. Compilation fails
  • D. A B C Work done

正解:A


質問 # 201
Given:

What is the result?

  • A. Option D
  • B. Option B
  • C. Option A
  • D. Option C

正解:A


質問 # 202
Given the code fragment:
System.out.println(2 + 4 * 9 - 3); //Line 21 System.out.println((2 + 4) * 9 - 3); // Line 22 System.out.println(2 + (4 * 9) - 3); // Line 23 System.out.println(2 + 4 * (9 - 3)); // Line 24 System.out.println((2 + 4 * 9) - 3); // Line 25
Which line of codes prints the highest number?

  • A. Line 23
  • B. Line 24
  • C. Line 25
  • D. Line 22
  • E. Line 21

正解:D

解説:
The following is printed: 35 51 35 26 35


質問 # 203
Given:

Given the code fragment:

Which two sets of actions, independently, enable the code fragment to print Fit?

  • A. At line n1 insert: import clothing.Shirt;
    At line n2 insert: String color = getColor();
  • B. At line n1 insert: import clothing;
    At line n2 insert: String color = Shirt.getColor();
  • C. At line n1 insert: import clothing.*;
    At line n2 insert: String color = Shirt.getColor();
  • D. At line n1 insert: import static clothing.Shirt.getcolor;
    At line n2 insert: String color = getColor();
  • E. At line n1 no changes required.
    At line n2 insert: String color = Shirt.getColor();

正解:A


質問 # 204
Given the code fragment:

What could expression1 and expression2 be, respectively, in order to produce output -8, 16?

  • A. A+ +, - - b
  • B. + +a, b- -
  • C. + +a, - -b
  • D. A + +, b - -

正解:D


質問 # 205
Given the code fragments:

Which code fragment, when inserted at line n1, enables the code to print Hank?

  • A. checkAge(iList, (Person p) -> { p.getAge() > 40; });
  • B. checkAge(iList, Person p -> p.getAge( ) > 40);
  • C. checkAge (iList, ( ) -> p. get Age ( ) > 40);
  • D. checkAge (iList, p -> p.getAge ( ) > 40);

正解:D


質問 # 206
Given the following code for a Planet object:

What is the output?

  • A. Option C
  • B. Option E
  • C. Option B
  • D. Option D
  • E. Option A

正解:A


質問 # 207
Given the code fragment:

What is the result?

  • A. 5 : 5
  • B. 5 : 10
  • C. 10 : 10
  • D. Compilation fails

正解:C


質問 # 208
Given:

What is the result?

  • A. 10 : 22 : 6
  • B. 10 : 22 : 20
  • C. 10 : 30 : 6
  • D. 10 : 22 : 22

正解:D


質問 # 209
......


Oracle 1z1-808試験は、Java SE 8プログラマーの認定を取得したい個人向けに設計された認定試験です。Javaの基礎、オブジェクト指向プログラミング、Javaコレクションなど、広範なトピックをカバーする包括的な試験です。この試験に合格することは、キャリアの見通しを向上させ、求人市場で競争力を持つことができる重要な達成です。

 

1z1-808練習試験と学習ガイドは厳密検証されたにはFast2test:https://jp.fast2test.com/1z1-808-premium-file.html


弊社を連絡する

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

我々の働いている時間: ( GMT 0:00-15:00 )
月曜日から土曜日まで

サポート: 現在連絡 

English Deutsch 繁体中文 한국어