[2024年最新] リアルなOracle問題集を使って 100%無料1z0-808試験問題集
リアル1z0-808問題集で最新のOracle練習テスト問題集
質問 # 77
Given the following classes:
Which two options fail to compile when placed at line n1 of the main method?
- A. employee.budget = 200_000;
- B. director.salary = 80_000;
- C. employee.salary = 50_000;
- D. director.stockOptions = 1_000;
- E. manager.budget = 1_000_000;
- F. manager.stockOption = 500;
正解:A、E
質問 # 78
Given:
What is the result?
- A. 3 6 4 6
- B. 3 4 3 6
- C. 3 4 5 6
- D. 5 4 5 6
正解:D
質問 # 79
Given:
What is the result?
- A. DerivedB
DerivedB - B. Base
DerivedA - C. A classcast Except ion is thrown at runtime.
- D. Base
DerivedB - E. DerivedB
DerivedA
正解:A
質問 # 80
Given:
Which code fragment can replace the if block?
- A. Option B
- B. Option C
- C. Option A
- D. Option D
正解:D
質問 # 81
You are asked to develop a program for a shopping application, and you are given the following information:
-The application must contain the classes Toy, EduToy, and consToy. The Toy class is the
superclass of the other two classes. -The int caicuiatePrice (Toy t) method calculates the price of a toy. -The void printToy (Toy t) method prints the details of a toy.
Which definition of the Toy class adds a valid layer of abstraction to the class hierarchy?
- A. Option D
- B. Option B
- C. Option C
- D. Option A
正解:D
質問 # 82
Given the following class:
And given the following main method, located in another class:
Which three lines, when inserted independently at line n1, cause the program to print a 0 balance?
- A. this.amount = 0;
- B. acct.changeAmount(-acct.getAmount());
- C. acct (0) ;
- D. acct. getAmount () = 0;
- E. amount = 0;
- F. acct.changeAmount(0);
- G. acct.changeAmount(-acct.amount);
- H. acct.amount = 0;
正解:A、C、H
質問 # 83
Given the code fragment:
What is the result?
- A. Compilation fails only at line n3.
- B. Compilation fails only at line n1.
- C. Reading Card Checking Card
- D. Compilation fails only at line n2.
- E. Compilation fails at both line n2 and line n3.
正解:E
質問 # 84
Given the code fragment:
What is the result?
- A. The program compiles, but it prints nothing.
- B. Compilation fails.
- C. An UnsupportedOperationException is thrown at runtime.
- D. HiHowAreYou removed
正解:A
解説:
質問 # 85
Given the code fragment:
What is the result?
A: Invalid Name
B:
C:
D:
- A. Option D
- B. Option B
- C. Option C
- D. Option A
正解:C
質問 # 86
Which usage represents a valid way of compiling java source file with the name "Main"?
- A. java Main
- B. java Main.java
- C. javac Main
- D. javac Main.java
- E. java Main.class
正解:D
解説:
The compiler is invoked by the javac command. When compiling a Java class, you must include the file name, which houses the main classes including the Java extension. So to run Main.java file we have to use command in option A.
TO execute Java program we can use Java command but can't use it for compiling.
https://docs.oracle.com/javase/tutorial/getStarted/application/index.html
質問 # 87
Given the code fragment:
Which three lines fail to compile?
- A. Line 11
- B. Line 7
- C. Line 8
- D. Line 10
- E. Line 12
- F. Line 9
正解:B、D、E
質問 # 88
Given the code fragment:
What is the result?
- A. A B C D Work done
- B. A Work done
- C. A B C Work done
- D. Compilation fails
正解:B
質問 # 89
Given the code fragment:
What is the result?
- A. A B C
- B. Compilation fails.
- C. A B C D E
- D. A B D E
正解:B
質問 # 90
Given the code fragment:
Which three lines fail to compile? (Choose three.)
- A. Line 9
- B. Line 11
- C. Line 7
- D. Line 8
- E. Line 10
- F. Line 12
正解:A、B、D
質問 # 91
Given the code fragment:
Which modification enables the code to print 54321?
- A. At line 7, insert x --;
- B. Replace line 6 with --x; and, at line 7, insert system, out. print (x);
- C. Replace line 6 with System, out. print (--x) ;
- D. Replace line 12 With return (x > 0) ? false: true;
正解:C
質問 # 92
Given:
What is the result?
- A. Compilation fails.
- B. 0 0
- C. 3 5
- D. 9 25
正解:C
質問 # 93
Given:
What is the result?
- A. Compilation fails.
- B. 0 0
- C. 3 5
- D. 9 25
正解:C
質問 # 94
......
この試験は、Javaの基本、データ型、配列、制御フロー構成、方法、カプセル化などのさまざまなトピックをカバーする70の複数選択質問で構成されています。また、継承、インターフェイス、ラムダ式、機能的インターフェイス、例外などのトピックもカバーしています。試験期間は150分で、合格スコアは65%です。
1z0-808問題集PDFで1z0-808リアルな試験問題アンサー:https://www.passtest.jp/Oracle/1z0-808-shiken.html
1z0-808試験 [2024年最新] 問題集でOracleのPDF問題:https://drive.google.com/open?id=1ccK4_Z7kI9yy2OiYPJOfOYPWRdGw3gtL