質問 1:Given:
public class product {
int id; int price;
public Product (int id, int price) {
this.id = id;
this.price = price;
}
public String toString() { return id + ":" + price; }
}
and the code fragment:
List<Product> products = Arrays.asList(new Product(1, 10),
new Product (2, 30),
new Product (2, 30));
Product p = products.stream().reduce(new Product (4, 0), (p1, p2) -> {
p1.price+=p2.price;
return new Product (p1.id, p1.price);});
products.add(p);
products.stream().parallel()
.reduce((p1, p2) - > p1.price > p2.price ? p1 : p2)
.ifPresent(System.out: :println);
What is the result?
A. 2 : 30
B. The program prints nothing.
C. 4 : 0
D. 4 : 70
E. 4 : 602 : 303 : 201 : 10
正解:D
質問 2:Given the records from the Employee table:
and given the code fragment:
try {
Connection conn = DriverManager.getConnection (URL, userName, passWord); Statement st = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); st.execute("SELECT*FROM Employee"); ResultSet rs = st.getResultSet(); while (rs.next()) { if (rs.getInt(1) ==112) { rs.updateString(2, "Jack");
}
}
rs.absolute(2);
System.out.println(rs.getInt(1) + " " + rs.getString(2));
} catch (SQLException ex) {
System.out.println("Exception is raised");
}
Assume that:
The required database driver is configured in the classpath.
The appropriate database accessible with the URL, userName, and passWord exists.
What is the result?
A. The Employee table is updated with the row:112 Jackand the program prints:112 Jack
B. The program prints Exception is raised.
C. The Employee table is updated with the row:112 Jackand the program prints:112 Jerry
D. The Employee table is not updated and the program prints:112 Jerry
正解:D
質問 3:Given the code fragment:
What is the result?
A. The code reads the password without echoing characters on the console.
B. A compilation error occurs at line n2.
C. A compilation error occurs because the IOException isn't declared to be thrown or caught?
D. A compilation error occurs at line n1.
正解:D
質問 4:Given:
class Book {
int id;
String name;
public Book (int id, String name) {
this.id = id;
this.name = name;
}
public boolean equals (Object obj) { //line n1
boolean output = false;
Book b = (Book) obj;
if (this.id = = b.id) {
output = true;
}
return output;
}
}
and the code fragment:
Book b1 = new Book (101, "Java Programing");
Book b2 = new Book (102, "Java Programing");
System.out.println (b1.equals(b2)); //line n2
Which statement is true?
A. A compilation error occurs. To ensure successful compilation, replace line n1 with:boolean equals (Book obj) {
B. A compilation error occurs. To ensure successful compilation, replace line n2 with:System.out.println (b1.equals((Object) b2));
C. The program prints true.
D. The program prints false.
正解:D
質問 5:Given:
public class Customer {
private String fName;
private String lName;
private static int count;
public customer (String first, String last) {fName = first, lName = last;
++count;}
static { count = 0; }
public static int getCount() {return count; }
}
public class App {
public static void main (String [] args) {
Customer c1 = new Customer("Larry", "Smith");
Customer c2 = new Customer("Pedro", "Gonzales");
Customer c3 = new Customer("Penny", "Jones");
Customer c4 = new Customer("Lars", "Svenson");
c4 = null;
c3 = c2;
System.out.println (Customer.getCount());
}
}
What is the result?
A. 0
B. 2
C. 3
D. 4
E. 5
正解:D
質問 6:Given the structure of the Student table:
Student (id INTEGER, name VARCHAR)
Given the records from the STUDENT table:
Given the code fragment:
Assume that:
What is the result?
A. The program prints Status: true and two records are deleted from the Student table.
B. The program prints Status: false and two records are deleted from the Student table.
C. A SQLException is thrown at runtime.
D. The program prints Status: false but the records from the Student table are not deleted.
正解:B
質問 7:Given the code fragment:
Which modification enables the code to print Price 5 New Price 4?
A. Replace line n3 with .forEach (n -> System.out.println ("New Price" + n));
B. Replace line n2 with .map (n -> System.out.println ("New Price" + n -1)) and remove line n3
C. Replace line n2 with .mapToInt (n -> n - 1);
D. Replace line n1 with .forEach (e -> System.out.print ("Price" + e))
正解:A
質問 8:Given:
class Worker extends Thread {
CyclicBarrier cb;
public Worker(CyclicBarrier cb) { this.cb = cb; }
public void run () {
try {
cb.await();
System.out.println("Worker...");
} catch (Exception ex) { }
}
}
class Master implements Runnable { //line n1
public void run () {
System.out.println("Master...");
}
}
and the code fragment:
Master master = new Master();
//line n2
Worker worker = new Worker(cb);
worker.start();
You have been asked to ensure that the run methods of both the Worker and Master classes are executed.
Which modification meets the requirement?
A. Replace line n1 with class Master extends Thread {
B. At line n2, insert CyclicBarrier cb = new CyclicBarrier(1, master);
C. At line n2, insert CyclicBarrier cb = new CyclicBarrier(2, master);
D. At line n2, insert CyclicBarrier cb = new CyclicBarrier(master);
正解:B
質問 9:Given:
and the code fragment:
The threads t1 and t2 execute asynchronously and possibly prints ABCA or AACB.
You have been asked to modify the code to make the threads execute synchronously and prints ABC.
Which modification meets the requirement?
A. Replace line n1 with:private synchronized int count = 0;
B. start the threads t1 and t2 within a synchronized block.
C. Replace line n2 with:public synchronized void run () {
D. Replace line n2 with:volatile int count = 0;
正解:B
弊社のOracle 1z0-809を利用すれば試験に合格できます
弊社のOracle 1z0-809は専門家たちが長年の経験を通して最新のシラバスに従って研究し出した勉強資料です。弊社は1z0-809問題集の質問と答えが間違いないのを保証いたします。
この問題集は過去のデータから分析して作成されて、カバー率が高くて、受験者としてのあなたを助けて時間とお金を節約して試験に合格する通過率を高めます。我々の問題集は的中率が高くて、100%の合格率を保証します。我々の高質量のOracle 1z0-809を利用すれば、君は一回で試験に合格できます。
TopExamは君に1z0-809の問題集を提供して、あなたの試験への復習にヘルプを提供して、君に難しい専門知識を楽に勉強させます。TopExamは君の試験への合格を期待しています。
弊社は無料Oracle 1z0-809サンプルを提供します
お客様は問題集を購入する時、問題集の質量を心配するかもしれませんが、我々はこのことを解決するために、お客様に無料1z0-809サンプルを提供いたします。そうすると、お客様は購入する前にサンプルをダウンロードしてやってみることができます。君はこの1z0-809問題集は自分に適するかどうか判断して購入を決めることができます。
1z0-809試験ツール:あなたの訓練に便利をもたらすために、あなたは自分のペースによって複数のパソコンで設置できます。
一年間の無料更新サービスを提供します
君が弊社のOracle 1z0-809をご購入になってから、我々の承諾する一年間の更新サービスが無料で得られています。弊社の専門家たちは毎日更新状態を検査していますから、この一年間、更新されたら、弊社は更新されたOracle 1z0-809をお客様のメールアドレスにお送りいたします。だから、お客様はいつもタイムリーに更新の通知を受けることができます。我々は購入した一年間でお客様がずっと最新版のOracle 1z0-809を持っていることを保証します。
弊社は失敗したら全額で返金することを承諾します
我々は弊社の1z0-809問題集に自信を持っていますから、試験に失敗したら返金する承諾をします。我々のOracle 1z0-809を利用して君は試験に合格できると信じています。もし試験に失敗したら、我々は君の支払ったお金を君に全額で返して、君の試験の失敗する経済損失を減少します。
安全的な支払方式を利用しています
Credit Cardは今まで全世界の一番安全の支払方式です。少数の手続きの費用かかる必要がありますとはいえ、保障があります。お客様の利益を保障するために、弊社の1z0-809問題集は全部Credit Cardで支払われることができます。
領収書について:社名入りの領収書が必要な場合、メールで社名に記入していただき送信してください。弊社はPDF版の領収書を提供いたします。
Oracle 1z0-809 認定試験の出題範囲:
トピック | 出題範囲 |
---|
トピック 1 | - Develop Code That Declares, Implements And
- Or Extends Interfaces And Use The @Override Annotation
- Develop Code That Uses The Optional Class
|
トピック 2 | - Define And Create And Manage Date-Based And Time-Based Events Using Instant, Period, Duration, And Temporalunit
- Filter A Collection By Using Lambda Expressions
|
トピック 3 | - Develop Code That Uses Static Keyword On Initialize Blocks, Variables, Methods, And Classes
|
トピック 4 | - Develop Code That Uses Stream Data Methods And Calculation Methods
- Iterate Using Foreach Methods Of Streams And List
|
トピック 5 | - Create And Use Singleton Classes And Immutable Classes
- Use Java.Util.Comparator And Java.Lang.Comparable Interfaces
|
トピック 6 | - Develop Code That Uses The Unaryoperator Interface
- Create Custom Exceptions And Auto-Closeable Resources
- Lambda Built-In Functional Interfaces
|
トピック 7 | - Create And Use Arraylist, Treeset, Treemap, And Arraydeque Objects
- Override Hashcode, Equals, And Tostring Methods From Object Class
|
トピック 8 | - Create And Manage Date-Based And Time-Based Events Including A Combination Of Date And Time Into A Single Object Using Localdate, Localtime, Localdatetime
|
トピック 9 | - Use Enumerated Types Including Methods, And Constructors In An Enum Type
- Implement Polymorphism
- Create And Use A Generic Class
|
トピック 10 | - Save Results To A Collection Using The Collect Method And Group
- Partition Data Using The Collectors Class
|
トピック 11 | - Develop Code To Extract Data From An Object Using Peek() And Map() Methods Including Primitive Versions Of The Map() Method
|
トピック 12 | - Use Catch, Multi-Catch, And Finally Clauses
- Use Flatmap() Methods In The Stream API
- Develop Code That Uses The Final Keyword
|
トピック 13 | - Search For Data By Using Search Methods Of The Stream Classes Including Findfirst, Findany, Anymatch, Allmatch, Nonematch
|
トピック 14 | - Work With Dates And Times Across Timezones And Manage Changes Resulting From Daylight Savings Including Format Date And Times Values
|
トピック 15 | - Use The Built-In Interfaces Included In The Java.Util.Function Package Such As Predicate, Consumer, Function, And Supplier
|
トピック 16 | - Develop Code That Uses Binary Versions Of Functional Interfaces
- Use Autoclose Resources With A Try-With-Resources Statement
|
トピック 17 | - Describe Stream Interface And Stream Pipeline
- Create Inner Classes Including Static Inner Class, Local Class, Nested Class, And Anonymous Inner Class
|
参照:https://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&get_params=p_exam_id:1Z0-809