1Z0-804 Exam Questions
160 real 1Z0-804 exam questions with expert-verified answers and explanations. Page 1 of 4.
- Question #1
Given: Which three values will appear in the output?
- Question #2
Which four are syntactically correct?
- Question #3
Given: What is the result?
- Question #4
Given: What is the result?
- Question #5
Given these facts about Java types in an application: - Type x is a template for other types in the application. - Type x implements dostuff (). - Type x declares, but does NOT imp...
- Question #6
Given: What two changes, made independently, will enable the code to compile?
- Question #7
Given: Which fragment, inserted in the Books interface, enables the code to compile?
- Question #8
Given: What is the result?
- Question #9
Which two forms of abstraction can a programmer use in Java?
- Question #10
Given: What is the result?
- Question #11
Given the classes: What is the result?
- Question #12
Given: Which two statements are true about the writer class?
- Question #13
Given the two Java classes: Which two code snippets, added independently at line ***, can make the Buzzword class compile?
- Question #14
Given: Which statement will iterate through Direction?
- Question #15
Given: What is the result?
- Question #16
Which four are true about enums?
- Question #17
Given: Which statement, inserted at line 8, enables the code to compile?
- Question #18
Given the code fragment: String query = "SELECT ID FROM Employee"; \\ Line 1 try (Statement stmt = conn.CreateStatement()) { \\ Line 2 ResultSet rs = stmt.executeQuery(query); \\ L...
- Question #19
Given: Which group of method is moved to a new class when implementing the DAO pattern?
- Question #20
Given: Which three are true?
- Question #21
Given: Which three statements concerning the OO concepts "is-a" and "has-a" are true?
- Question #22
Which two compile?
- Question #23
Given: What two changes should you make to apply the DAO pattern to this class?
- Question #24
Which is a key aspect of composition?
- Question #25
Which two are true about Singletons?
- Question #26
What are two differences between Callable and Runnable?
- Question #27
Which two properly implement a Singleton pattern?
- Question #28
Given: Which two statements concerning the OO concepts "IS-A" and "HAS-A" are true?
- Question #29
Given the integer implements comparable: What is the result?
- Question #30
Which statement declares a generic class?
- Question #31
Given: What is the result?
- Question #32
Given the following code fragment: What is the result?
- Question #33
Which concept allows generic collections to interoperate with java code that defines collections that use rawtypes?
- Question #34
Given: What is the result?
- Question #35
Given: What is the result?
- Question #36
Given: What is the result?
- Question #37
Given: What is the result?
- Question #38
Given the class? What is the result?
- Question #39
Given the cache class:
- Question #40
Given: What is the result?
- Question #41
Given: What is the result?
- Question #42
Give: What is the result?
- Question #43
Given the code fragment: What is the result?
- Question #44
Given: What is the result?
- Question #45
Given: And the commands: javac Test.java java ea Test What is the result?
- Question #46
Given: And the command-line invocation: Java Tracker 12 11 What is the result?
- Question #47
Given the code fragment: What is the result when infected() is invoked?
- Question #48
Given the existing destination file, a source file only 1000 bytes long, and the code fragment: What is the result?
- Question #49
Given the code fragment: What is the result, if the file myfile.txt does not exist?
- Question #50
Given the code fragment: Why is there no output when otherMethod is called?