更新された2023年04月23日 1z1-811試験問題集でPDF問題とテストエンジン
最新(2023)Oracle 1z1-811試験問題集
質問 # 32
Given the classes:
Which two modifications, independently, enable the Salad.java file to compile?
- A. Replace line n1 with import fruits.Apple.getApple();
- B. Replace line n1 with import fruits.Apple;
- C. Replace line n2 with fruits.Apple apple = new Apple ();
- D. Replace line n1 with import fruits;
- E. Replace line n2 with fruits.Apple apple = new fruits.Apple ();
正解:A、C
質問 # 33
Which statement is true about a mutator method?
- A. It returns mutated instance members.
- B. It must be declared private.
- C. It replaces the default constructor.
- D. It can be used to assign data to instance members.
正解:A
質問 # 34
Given the code fragment:
What is the result?
- A. 0
- B. 1
- C. 2
- D. 3
正解:C
質問 # 35
Given the code fragment:
What is the result?
- A. true
false
false
false - B. true
true
true
false - C. false
false
false
false - D. true
true
true
true
正解:D
質問 # 36
Given the code fragment:
What is the result?
- A. A runtime exception is thrown.
- B. Peter
Julia - C. A compilation error occurs.
- D. Julia
Peter
正解:D
質問 # 37
Which method identifier is correct according to Java naming conventions?
- A. calculatebill
- B. Calculator
- C. BillCalculator
- D. calculateBill
正解:B
質問 # 38
Given:
At which line does a compilation error occur?
- A. line 5
- B. line 7
- C. line 3
- D. line 2
正解:D
質問 # 39
Given:
What is the result?
- A. [null:-]
- B. [:null]
- C. [null:null]
- D. [ : ]
正解:A
質問 # 40
Given the code fragment:
What is the result?
- A. 0
- B. 1
- C. 2
- D. The program executes an infinite number of times.
正解:A
質問 # 41
Given:
What is the result?
- A. The program compiles and nothing is printed.
- B. An error occurs during compilation.
- C. Iteration plus an increasing number is printed 100 times.
- D. Iteration plus an increasing number is printed 99 times.
正解:B
質問 # 42
Given the code fragment:
What is the result?
- A. true true 0
- B. false false -1
- C. false true -1
- D. true false 0
正解:D
質問 # 43
Which two components can class declarations include?
- A. The public modifier
- B. Interfaces implemented by the class
- C. The main method
- D. A list of instance methods
正解:A、B
質問 # 44
Given:
What is the result?
- A. Compilation fails. To make it compile, replace line n1 with var1 = 0;
- B. Compilation fails. To make it compile, replace line n2 with var2 = 0;
- C. 0
- D. Nothing is printed.
正解:B
質問 # 45
Given:
What is the result?
- A. 0
- B. A compilation error occurs.
- C. 1
- D. 2
正解:B
質問 # 46
Given the code fragment:
Which two code fragments are valid at line 2?
- A. package p1;
- B. private String name = "John";
public void display() {
System.out.print(name);
} - C. {
private int num;
} - D. import java.util.*;
public void display() {
List<Integer> nums = new ArrayList<> ();
} - E. for (int count = 0; count < 5; count++) {
System.out.print(count);
}
正解:A、B
質問 # 47
Which statement is true about a Java method?
- A. It must be declared with an access modifier.
- B. It cannot be defined within another method.
- C. It must accept a parameter and return a value.
- D. It cannot be defined as static final.
正解:B
質問 # 48
Given the code fragment:
What is the output?
- A. 0
- B. 1
- C. 2
- D. A compilation error occurs.
正解:B
質問 # 49
Given the code fragment:
Which statement, when inserted at line n1, enables the code to print 0 2 4 6 8 10?
- A. count = (count++) +1;
- B. count += 2;
- C. count = count++;
- D. count =+ 2;
正解:B
質問 # 50
Which two statements are true about the Java Runtime Environment (JRE)?
- A. It contains the JDK and Java APIs.
- B. You must install the JRE to compile a .java file.
- C. It interprets bytecode stored in a .class file.
- D. It is platform independent.
- E. It is responsible for garbage collection.
正解:C、D
質問 # 51
Identify two valid data types for the operands of the addition (+) operator?
- A. boolean
- B. string
- C. numeric
- D. array
正解:B、D
質問 # 52
Given:
And the code fragment:
Which code fragment can be inserted at line n1 to enable the code to print All the best?
- A. m.writeMsg();
- B. void writeMsg();
- C. Messenger.writeMsg();
- D. writeMsg();
正解:C
質問 # 53
Given the code fragment:
At which line does a compilation error occur?
- A. lines 6 and 8
- B. line 7
- C. line 5
- D. lines 5 and 7
正解:C
質問 # 54
......
更新された検証済みの合格させる1z1-811試験にはリアル問題と解答:https://jp.fast2test.com/1z1-811-premium-file.html
最適な練習法にはOracle 1z1-811試験の素晴らしい1z1-811試験問題PDF:https://drive.google.com/open?id=1iv86D4y52nbUtQNGovmorPWtb0Kfuxbc