1z1-809 무료 덤프문제 온라인 액세스
| 시험코드: | 1z1-809 |
| 시험이름: | Java SE 8 Programmer II |
| 인증사: | Oracle |
| 무료 덤프 문항수: | 209 |
| 업로드 날짜: | 2025-10-23 |
Given the code fragment:
public class Foo {
public static void main (String [ ] args) {
Map<Integer, String> unsortMap = new HashMap< > ( );
unsortMap.put (10, "z");
unsortMap.put (5, "b");
unsortMap.put (1, "d");
unsortMap.put (7, "e");
unsortMap.put (50, "j");
Map<Integer, String> treeMap = new TreeMap <Integer, String> (new
Comparator<Integer> ( ) {
@Override public int compare (Integer o1, Integer o2) {return o2.compareTo (o2); } } ); treeMap.putAll (unsortMap); for (Map.Entry<Integer, String> entry : treeMap.entrySet () ) { System.out.print (entry.getValue () + " ");
}
}
}
What is the result?
Given the code fragment:
List<String> nL = Arrays.asList("Jim", "John", "Jeff");
Function<String, String> funVal = s -> "Hello : ".concat(s);
nL.Stream()
.map(funVal)
.forEach(s-> System.out.print (s));
What is the result?



