試験問題解答ブレーン問題集で1z0-808試験問題集PDF問題
無料ダウンロードOracle 1z0-808リアル試験問題
質問 # 53
Given:
What is the result?
- A. Option A
- B. Option D
- C. Option C
- D. Option B
正解:D
質問 # 54
public class StringReplace {
public static void main(String[] args) {
String message = "Hi everyone!";
System.out.println("message = " + message.replace("e", "X")); }
}
What is the result?
- A. A compile time error is produced.
- B. message = Hi everyone!
- C. A runtime error is produced.
- D. message =
- E. message = Hi Xveryone!
- F. message = Hi XvXryonX!
正解:F
質問 # 55
Given: What is result?
- A. Successful
- B. Compilation fails
- C. An exception is thrown at runtime
- D. Unsuccessful
正解:B
質問 # 56
Given the following class:
Which two changes would encapsulate this class and ensure that the area field is always equal to length * heightwhenever the Rectangle class is used?
- A. Call the setArea method at the end of the setLength method.
- B. Call the setArea method at the beginning of the setLength method.
- C. Change the area field to public.
- D. Call the setArea method at the beginning of the setHeight method.
- E. Change the setArea method to private.
- F. Call the setArea method at the end of the setHeight method.
正解:E、F
質問 # 57
Given the code fragment:
Which code fragment, when inserted at line 3, enables the code to print 10:20?
- A. int array [2] ;
- B. int array = new int[2];
- C. int[] array;array = int[2];
- D. int[] array = new int[2];
正解:D
質問 # 58
Given the code fragment:
What is the result?
- A. Compilation fails.
- B. The program compiles, but it prints nothing.
HiHowAreYou removed - C. An UnsupportedOperationExceptionis thrown at runtime.
- D.
正解:B
解説:
質問 # 59
Given the following code:
What is the output?
- A. 0
- B. 1
- C. 2
- D. 3
- E. 4
- F. 5
正解:B
質問 # 60
Given the code fragment:
What is the result?
- A. false false
- B. true false
- C. false true
- D. true true
正解:B
質問 # 61
Given:
public class Test {
public static void main(String[] args) {
try {
String[] arr =new String[4];
arr[1] = "Unix";
arr[2] = "Linux";
arr[3] = "Solarios";
for (String var : arr) {
System.out.print(var + " ");
}
} catch(Exception e) {
System.out.print (e.getClass());
}
}
}
What is the result?
- A. Class java.lang.NullPointerException
- B. Unix Linux Solaris
- C. Class java.lang.Exception
- D. Null Unix Linux Solaris
正解:D
解説:
null Unix Linux Solarios
The first element, arr[0], has not been defined.
質問 # 62
Given:
What is the result?
- A. Compilation fails.
- B. 9 5
- C. 0 0
- D. 81 25
正解:B
解説:
質問 # 63
Given:
What is the result?
- A. false, true
- B. true, true
- C. true, false
- D. false, false
正解:A
質問 # 64
Given the definitions of the MyString class and the Test class:
What is the result?
- A. Option C
- B. Option A
- C. Option D
- D. Option B
正解:A
質問 # 65
Given the code fragment:
What is the result?
- A. 0
- B. 1
- C. 2
- D. An exception is thrown at runtime.
正解:D
質問 # 66
Given the code fragment:
What is the result?
- A. Sum is 600
- B. A ClassCastException is thrown at line n2.
- C. A ClassCastException is thrown at line n1.
- D. Compilation fails at line n2.
- E. Compilation fails at line n1.
正解:B
質問 # 67
Given:
And given the code fragment:
What is the result?
- A. C2C2
- B. C1C1
- C. C1C2
- D. Compilation fails
正解:C
解説:
Explanation/Reference:
質問 # 68
Given:
What is the result?
- A. Compilation fails.
- B. 9 5
- C. 0 0
- D. 81 25
正解:B
解説:
質問 # 69
Given:
What is the result?
- A. BaseDerivedA
- B. A ClassCastException is thrown at runtime.
- C. DerivedBDerivedA
- D. DerivedBDerivedB
- E. BaseDerivedB
正解:C
質問 # 70
Given the code fragment:
What is the result?
- A. A B D E
- B. Compilation fails.
- C. A B C
- D. A B C D E
正解:B
質問 # 71
Given:
What is the result?
- A. A NullPointerException is thrown at runtime.
- B. 97 98 99 100 null null null
- C. 97 98 99 100 101 102 103
- D. Compilation rails.
- E. An ArraylndexOutOfBoundsException is thrown at runtime.
正解:B
質問 # 72
Given:
What is the result?
- A. false false
- B. Compilation fails.
- C. true false
- D. false true
- E. true true
正解:D
質問 # 73
Given the code fragment:
Which option represents the state of the num array after successful completion of the outer loop?
A:
B:
C:
D:
- A. Option D
- B. Option A
- C. Option C
- D. Option B
正解:B
質問 # 74
Given:
What is the result?
- A. myStr: 7007, myNum: 9009
- B. myStr: 7007, myNum: 7007
- C. myStr: 9009, myNum: 9009
- D. Compilation fails
正解:A
質問 # 75
Given the code fragment:
What is the result?
- A. 2 4
- B. 0 2 4 6
- C. Compilation fails
- D. 0 2 4
正解:D
質問 # 76
Given the code fragment:
Which three code fragments are valid at line n1?
- A. public abstract int computeDiscount();
- B. public int calculatePrice() {return price;}
- C. public static void insertToy() {/* code goes here */}
- D. public abstract Toy getToy() {return new Toy();}
- E. public void printToy();
正解:A、B、E
質問 # 77
......
最新のOracle 1z0-808リアル試験問題集PDF:https://www.passtest.jp/Oracle/1z0-808-shiken.html
1z0-808試験問題集、1z0-808練習テスト問題:https://drive.google.com/open?id=1mMd7a-ADh1alr79uEaBmrkZZeiaCcf3N