Oracle Upgrade to Java SE 7 Programmer (1Z1-805日本語版) - 1Z1-805日本語무료 덤프문제 풀어보기

public class DAOManager {
public AccountDAO getAccountDAO() {
return new AccountJDBCDAO();
}
}

정답: D
설명: (Fast2test 회원만 볼 수 있음)

public static void main(String[] args) throws Exception {
try {
processFile();
} catch(Exception e) {
Throwable [] t = e.getSuppressed();
}
}
public static void processFile() throws IOException {
try (FileReader fr = new FileReader"logfilesrc.txt");
FileWriter fw = new FileWriter("logfiledest.txt")) {{
java.util.zip.ZipFile zf = new java.util.zip.ZipFile("alllogs.zip");
System.out.println("Created files for logs");
}
}

정답: C
설명: (Fast2test 회원만 볼 수 있음)

Path path1 = Paths.get("D:\\sales\\.\\quarterly\\..\\report");
path1 = path1.normalize();
Path path2 = path1.relativize(Paths.get("d:\\empdetails.dat"));
path2 = path2.resolve(path1);
System.out.println(path1);
System.out.println(path2);
}

정답: C
설명: (Fast2test 회원만 볼 수 있음)



정답: A,C
설명: (Fast2test 회원만 볼 수 있음)

public class MyGrades {
private final List<Integer> myGrades = new ArrayList<Integer>();
private final ReadWriteLock rwlock = new ReentrantReadWriteLock();
public void addGrade(Integer grade) {
/*
lock and modify
*/
}
public void averageGrades() {
// acquire _______ lock Line **
double sum = 0;
int i = 0;
for (i = 0; i < myGrades.size(); i++) {
sum += myGrades.get(i);
}
// release __________ lock Line ***
System.out.println("The average is: " + sum/(i+1));
}
}

정답: B
설명: (Fast2test 회원만 볼 수 있음)

정답: C
설명: (Fast2test 회원만 볼 수 있음)

public class DataCache {
private static final DataCache instance = new DataCache ();
public static DataCache getInstance () {
return instance;
}
}

정답: C
설명: (Fast2test 회원만 볼 수 있음)

정답: C
설명: (Fast2test 회원만 볼 수 있음)

정답: C
설명: (Fast2test 회원만 볼 수 있음)