1Z0-804 Exam Questions
160 real 1Z0-804 exam questions with expert-verified answers and explanations. Page 4 of 4.
- Question #151
Which represents part of a DAO design pattern?
- Question #152NIO.2
Which is true regarding the java.nio.file.Path Interface?
Path interfaceWatchServicethread safetyimmutability - Question #153Object-Oriented Design Principles
What are two benefits of a Factory design pattern?
Factory patternloose couplingobject creationdesign patterns - Question #154Localization
Given the code fragment: SimpleDateFormat sdf = new SimpleDateFormat("zzzz", Locale.US); System.out.println ("Result: " + sdf.format(today) ) ; What type of result is printed?
SimpleDateFormattime zone formattingformat patternsdate localization - Question #155Building Database Applications with JDBC
The advantage of a CallableStatement over a PreparedStatement is that it:
CallableStatementPreparedStatementstored proceduresJDBC statements - Question #156
Which two statements are true regarding the try with resources statement?
- Question #157
Given the code fragment: try { String query = "SELECT * FROM Employee WHERE ID=110"; Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery(query); // Line 13 Sy...
- Question #158Building Database Applications with JDBC
Which three objects must a vendor provide implementations in its JDBC driver?
JDBC driverConnectionSQLExceptionDriverManager - Question #159NIO.2
Which two methods are defined in the FileStore class print disk space information?
FileStoredisk spacegetTotalSpacegetUsableSpace - Question #160Object-Oriented Design Principles
What design pattern does the Drivermanager.getconnection () method characterize?
Factory patternDriverManagerdesign patternsobject creation