Online Access Free 1Z0-805 Practice Test
| Exam Code: | 1Z0-805 |
| Exam Name: | Upgrade to Java SE 7 Programmer |
| Certification Provider: | Oracle |
| Free Question Number: | 90 |
| Posted: | Oct 25, 2025 |
Given:
public class DAOManager {
public AccountDAO getAccountDAO() {
return new AccountJDBCDAO();
}
}
Which design pattern best describes the class?
Given the code fragment:
public class TestString {
public static void main(String[] args) {
String str=null;
switch(str) {
case "":
System.out.println("blank"); break;
case "null":
System.out.println("NULL"); break;
default:
System.out.println("invalid"); break;
}
}
}
What is the result?
Which three must be used when using the Java.util.concurrent package to execute a task that returns a result without blocking?
The current working directory is named finance.
Which two code fragments allow you to write the salary.dat file if it does not exist under "finance\payroll"?