1Z0-804 Exam Questions
160 real 1Z0-804 exam questions with expert-verified answers and explanations. Page 3 of 4.
- Question #101
Given the code fragment: DateFormat df; Which statement defines a new Dateformat object that displays the default date format for the UK Locale?
- Question #102
Given: Which of the four are valid modifications to synchronize access to the valid list between threads t1 and t2?
- Question #103
Sam has designed an application. It segregates tasks that are critical and executed frequently from tasks thatare non critical and executed less frequently. He has prioritized thes...
- Question #104
Give: Which is correct?
- Question #105
Given: Which two classes correctly override the getDepth method?
- Question #106
To provide meaningful output for: System.out.print( new Item ()): A method with which signature should be added to the Item class?
- Question #107
Given the incomplete pseudo-code for a fork/join framework application: And given the missing methods: Process, submit, and splitInHalf Which three insertions properly complete the...
- Question #108
Given the code fragment: Assume the method printNums is passed a valid array containing data. Why is this method not producingoutput on the console?
- Question #109
Which method would you supply to a class implementing the Callable interface?
- Question #110
Which two codes correctly represent a standard language locale code?
- Question #111
Given the fragment: Which two valid alternatives to line 3 would decouple this application from a specific implementation of CustomerDAO?
- Question #112
Given a language code of fr and a country code of FR, which file name represents a resource bundle file namethat is not the default?
- Question #113
Assuming the port statements are correct, which two (three?) code fragments create a one- byte file?
- Question #114
Given: What is the result?
- Question #115
Given the code fragment: And a DOS-based file system: Which option, containing statement(s), inserted at line 3, creates the file and sets its attributes to hidden and read-only?
- Question #116
When using the default file system provider with a JVM running on a DOS-based file system, which statementis true?
- Question #117
Given the code fragment: Which three are true?
- Question #118
The two methods of code reuse that aggregate the features located in multiple classes are ____________ ?
- Question #119
Given: What is the result?
- Question #120
View the exhibit: Given the code fragment: What is the result?
- Question #121
For which three objects must a vendor provide implementations in its JDBC driver?
- Question #122
Given these facts about Java classes in an application: - Class X is-a Class SuperX. - Class SuperX has-a public reference to a Class Z. - Class Y invokes public methods in Class U...
- Question #123
Given: What is the result?
- Question #124
A valid reason to declare a class as abstract is to:
- Question #125
Given: What is the result?
- Question #126
Given this code fragment: Assume that the SQL query returns records. What is the result?
- Question #127
Given: What is the result?
- Question #128
Which statement creates a low overhead, low-contention random number generator that is isolated to thread togenerate a random number between 1 and 100?
- Question #129
Given: What is the result?
- Question #130
Given: What is the result?
- Question #131
Given: What is the result?
- Question #132
Given: Which statement is true?
- Question #133
Given: What is the result?
- Question #134
Given: What is the result?
- Question #135
Given two classes in separate files: Which two import statements can make the a.b.parent class compliable?
- Question #136
Given: String s = new String("3"); System.out.print(1 + 2 + s + 4 + 5); What is the result?
- Question #137
Given the code fragment: What is the result?
- Question #138
Given: And the commands: javac Counter.java java ea Counter What is the result?
- Question #139
Given the database table: And given this class: Assume that the SQL integer queries are valid. What is the result of compiling and executing this codefragment?
- Question #140
Given: Which two statements, inserted independently at line ***, enable the program to produce the following output: We have 002 Blue pants that cost $24.99.
- Question #141
Given: StringBuffer b = new StringBuffer("3"); System.out.print(5+4+b+2+1); What is the result?
- Question #142
Given: Which two are true about the lines labeled A through D?
- Question #143
Given the directory structure that contains three directories: company, Salesdat, and Finance: Company - Salesdat * Target.dat - Finance * Salary.dat * Annual.dat And the code frag...
- Question #144
Which type of ExecutorService supports the execution of tasks after a fixed delay?
- Question #145
Given: What is the result of invoking Car's scop method?
- Question #146
Given: What is the result?
- Question #147
Given: What is the most likely result?
- Question #148
Which two are valid initialization statements?
- Question #149
Given the code fragment: Which two try statements, when inserted at line ***, enable you to print files with the extensions.java, .htm, and.jar.
- Question #150
What will the following class print when run?