質問 1:Which two properly implement a Singleton pattern?
A. class Singleton {
Singleton () {}
private static class SingletonHolder {
private static final Singleton INSTANCE = new Singleton ();
}
public static Singleton getInstance () {
return SingletonHolder.INSTANCE; } }
B. enum Singleton {
INSTANCE;
}
C. class Singleton {
private static Singleton instance = new Singleton();
protected Singleton () {}
public static Singleton getInstance () {
return instance;
}
}
D. class Singleton {
private static Singleton instance;
private Singleton () {}
public static synchronized Singleton getInstance() {
if (instance == null) {
instance = new Singleton ();
}
return instance;
}
}
正解:B,D
解説: (Topexam メンバーにのみ表示されます)
質問 2:Given:

What is the result?
A. 0
B. 2
C. Compilation fails
D. 1
E. An exception is thrown at runtime
正解:E
解説: (Topexam メンバーにのみ表示されます)
質問 3:Given: Which fragment, inserted in the Books interface, enables the code to compile?
A. public String type = "Fiction"; public abstract String getType();
B. public abstract String type; public abstract String getType();
C. public String type = "Fiction"; public static String getType();
D. public static String type; public abstract String getType();
正解:A
質問 4:Given the code fragment: Which two try statements, when inserted at line ***, enable the code to successfully move the file info.txt to the destination directory, even if a file by the same name already exists in the destination directory?
A. try ( Files.copy(Paths.get(source), Paths.get(dest),StandardCopyOption.REPLACE_EXISTING); Files.delete
(Paths.get(source));
B. try (FileChannel in = new FileInputStream (source). getChannel(); FileChannel out = new FileOutputStream
(dest).getChannel()) { in.transferTo(0, in.size(), out);
C. try(BufferedReader br = Files.newBufferedReader(Paths.get(source), Charset.forName("UTF
8"));
BufferedWriter bw = Files.newBufferedWriter(Paths.get(dest), Charset.forName("UTF-8")); String
record =
"";
while ((record = br.readLine()) ! = null) {
bw.write(record);
bw.newLine();
} Files.delete(Paths.get(source));
D. try ( Files.copy(Paths.get(source),Paths.get(dest)); Files.delete (Paths.get(source));
E. try (Files.move(Paths.get(source),Paths.get(dest));
正解:A,C
解説: (Topexam メンバーにのみ表示されます)
質問 5:Given:

What is the result?
A. Daniel
B. An exception is thrown at runtime.
C. Compilation fails.
D. Unknown
E. It may print"unknown"or"Daniel"depending on the JVM implementation.
正解:C
解説: (Topexam メンバーにのみ表示されます)
質問 6:Given: And the commands: javac Counter.java java ea Counter

What is the result?
A. 2
B. 3
C. Compilation fails
D. NullPointException is thrown at runtime
E. AssertionError is thrown at runtime
正解:B
解説: (Topexam メンバーにのみ表示されます)
質問 7:For which three objects must a vendor provide implementations in its JDBC driver?
A. ResultSet
B. Statement
C. DriverManager
D. Date
E. Time
F. SQLException
G. Connection
正解:A,B,G
解説: (Topexam メンバーにのみ表示されます)
質問 8:Given the directory structure that contains three directories: company, Salesdat, and Finance: Company
-Salesdat
* Target.dat
-Finance
*Salary.dat
*Annual.dat
And the code fragment:

If Company is the current directory, what is the result?
A. Prints at least Salesdat, Annual.dat, Salary.dat, Target.dat
B. Prints only Salesdat, Annual.dat
C. Prints only Annual.dat
D. Prints only Annual.dat, Salary.dat, Target.dat
正解:C
解説: (Topexam メンバーにのみ表示されます)
質問 9:Given:
String s = new String("3"); System.out.print(1 + 2 + s + 4 + 5);
What is the result?
A. 1239
B. 3345
C. 12345
D. Compilation fails.
E. 339
正解:B
解説: (Topexam メンバーにのみ表示されます)
TopExamは君に1Z0-804の問題集を提供して、あなたの試験への復習にヘルプを提供して、君に難しい専門知識を楽に勉強させます。TopExamは君の試験への合格を期待しています。
一年間の無料更新サービスを提供します
君が弊社のOracle 1Z0-804をご購入になってから、我々の承諾する一年間の更新サービスが無料で得られています。弊社の専門家たちは毎日更新状態を検査していますから、この一年間、更新されたら、弊社は更新されたOracle 1Z0-804をお客様のメールアドレスにお送りいたします。だから、お客様はいつもタイムリーに更新の通知を受けることができます。我々は購入した一年間でお客様がずっと最新版のOracle 1Z0-804を持っていることを保証します。
安全的な支払方式を利用しています
Credit Cardは今まで全世界の一番安全の支払方式です。少数の手続きの費用かかる必要がありますとはいえ、保障があります。お客様の利益を保障するために、弊社の1Z0-804問題集は全部Credit Cardで支払われることができます。
領収書について:社名入りの領収書が必要な場合、メールで社名に記入していただき送信してください。弊社はPDF版の領収書を提供いたします。
弊社は失敗したら全額で返金することを承諾します
我々は弊社の1Z0-804問題集に自信を持っていますから、試験に失敗したら返金する承諾をします。我々のOracle 1Z0-804を利用して君は試験に合格できると信じています。もし試験に失敗したら、我々は君の支払ったお金を君に全額で返して、君の試験の失敗する経済損失を減少します。
弊社は無料Oracle 1Z0-804サンプルを提供します
お客様は問題集を購入する時、問題集の質量を心配するかもしれませんが、我々はこのことを解決するために、お客様に無料1Z0-804サンプルを提供いたします。そうすると、お客様は購入する前にサンプルをダウンロードしてやってみることができます。君はこの1Z0-804問題集は自分に適するかどうか判断して購入を決めることができます。
1Z0-804試験ツール:あなたの訓練に便利をもたらすために、あなたは自分のペースによって複数のパソコンで設置できます。
弊社のOracle 1Z0-804を利用すれば試験に合格できます
弊社のOracle 1Z0-804は専門家たちが長年の経験を通して最新のシラバスに従って研究し出した勉強資料です。弊社は1Z0-804問題集の質問と答えが間違いないのを保証いたします。

この問題集は過去のデータから分析して作成されて、カバー率が高くて、受験者としてのあなたを助けて時間とお金を節約して試験に合格する通過率を高めます。我々の問題集は的中率が高くて、100%の合格率を保証します。我々の高質量のOracle 1Z0-804を利用すれば、君は一回で試験に合格できます。
Oracle 1Z0-804 認定試験の出題範囲:
トピック | 出題範囲 |
---|
トピック 1 | |
トピック 2 | - Use access modifiers: private| protected| and public
|
トピック 3 | |
トピック 4 | - Use virtual method invocation|Identify when and how to apply abstract classes|Construct abstract Java classes and subclasses
|
トピック 5 | - Overload constructors and methods
|
参照:https://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&get_params=p_exam_id:1Z0-804