1z0 809 PDF
1z0 809 PDF
1z0 809 PDF
http://www.braindumpsprep.com
Prep your actual exam test with our valid braindumps for successful pass
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!
Exam : 1z0-809
Vendor : Oracle
Version : DEMO
1 from Briandumpsprep.com.
Get Latest & Valid 1z0-809 Exam's Question and Answers 1
http://www.briandumpsprep.com/1z0-809-prep-exam-braindumps.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!
NO.1 You have been asked to create a ResourceBundle which uses a properties file to localize an
application.
Which code example specifies valid keys of menu1 and menu2 with values of File Menu and View
Menu?
A. <key name = 'menu1">File Menu</key>
<key name = 'menu2">View Menu</key>
B. <key>menu1</key><value>File Menu</value>
<key>menu2</key><value>View Menu</value>
C. menu1 = File Menu
menu2 = View Menu
D. menu1, File Menu, menu2, View Menu Menu
Answer: C
NO.2 Given:
public class Emp {
String fName;
String lName;
public Emp (String fn, String ln) {
fName = fn;
lName = ln;
}
public String getfName() { return fName; }
public String getlName() { return lName; }
}
and the code fragment:
List<Emp> emp = Arrays.asList (
new Emp ("John", "Smith"),
new Emp ("Peter", "Sam"),
new Emp ("Thomas", "Wale"));
emp.stream()
//line n1
.collect(Collectors.toList());
Which code fragment, when inserted at line n1, sorts the employees list in descending order of
fName and then ascending order of lName?
A. .map(Emp::getfName).sorted(Comparator.reserveOrder().map
(Emp::getlName).reserved
B. .sorted (Comparator.comparing(Emp::getfName).thenComparing(Emp::getlName))
C. .map(Emp::getfName).sorted(Comparator.reserveOrder())
D. .sorted (Comparator.comparing(Emp::getfName).reserved().thenComparing (Emp::getlName))
Answer: D
and given:
2 from Briandumpsprep.com.
Get Latest & Valid 1z0-809 Exam's Question and Answers 2
http://www.briandumpsprep.com/1z0-809-prep-exam-braindumps.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!
NO.4 Given:
public class Canvas implements Drawable {
public void draw () { }
}
public abstract class Board extends Canvas { }
public class Paper extends Canvas {
protected void draw (int color) { }
}
public class Frame extends Canvas implements Drawable {
public void resize () { }
}
public interface Drawable {
public abstract void draw ();
}
Which statement is true?
A. Board does not compile.
B. Paper does not compile.
C. Frame does not compile.
D. All classes compile successfully.
E. Drawable does not compile.
Answer: D
3 from Briandumpsprep.com.
Get Latest & Valid 1z0-809 Exam's Question and Answers 3
http://www.briandumpsprep.com/1z0-809-prep-exam-braindumps.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!
A. 2016-02-29
B. 2016-02-14
C. A compilation error occurs at line n1.
D. A DateTimeException is thrown.
Answer: B
NO.6 Given:
Which two interfaces can you use to create lambda expressions? (Choose two.)
A. Q
B. P
C. R
D. S
E. T
F. U
Answer: E,F
4 from Briandumpsprep.com.
Get Latest & Valid 1z0-809 Exam's Question and Answers 4
http://www.briandumpsprep.com/1z0-809-prep-exam-braindumps.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!
Which two code fragments, when inserted at line n1 independently, result in the output PEEK: Unix?
A. .findAny ();
B. .allMatch ();
C. .anyMatch ();
D. .findFirst ();
E. .noneMatch ();
Answer: D
NO.9 Given:
interface Doable {
public void doSomething (String s);
}
Which two class definitions compile? (Choose two.)
A. public abstract class Work implements Doable {
public abstract void doSomething(String s) { }
public void doYourThing(Boolean b) { }
}
B. public class Job implements Doable {
public void doSomething(Integer i) { }
}
C. public abstract class Task implements Doable {
public void doSomethingElse(String s) { }
}
D. public class Do implements Doable {
public void doSomething(Integer i) { }
public void doSomething(String s) { }
public void doThat (String s) { }
}
E. public class Action implements Doable {
public void doSomething(Integer i) { }
public String doThis(Integer j) { }
}
Answer: C,D
5 from Briandumpsprep.com.
Get Latest & Valid 1z0-809 Exam's Question and Answers 5
http://www.briandumpsprep.com/1z0-809-prep-exam-braindumps.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!
NO.10 Given:
class Sum extends RecursiveAction { //line n1
static final int THRESHOLD_SIZE = 3;
int stIndex, lstIndex;
int [ ] data;
public Sum (int [ ]data, int start, int end) {
this.data = data;
this stIndex = start;
this. lstIndex = end;
}
protected void compute ( ) {
int sum = 0;
if (lstIndex - stIndex <= THRESHOLD_SIZE) {
for (int i = stIndex; i < lstIndex; i++) {
sum += data [i];
}
System.out.println(sum);
} else {
new Sum (data, stIndex + THRESHOLD_SIZE, lstIndex).fork( );
new Sum (data, stIndex,
Math.min (lstIndex, stIndex + THRESHOLD_SIZE)
).compute ();
}
}
}
and the code fragment:
ForkJoinPool fjPool = new ForkJoinPool ( );
int data [ ] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
fjPool.invoke (new Sum (data, 0, data.length));
and given that the sum of all integers from 1 to 10 is 55.
Which statement is true?
A. The program prints several values that total 55.
B. The program prints several values whose sum exceeds 55.
C. A compilation error occurs at line n1.
D. The program prints 55.
Answer: A
6 from Briandumpsprep.com.
Get Latest & Valid 1z0-809 Exam's Question and Answers 6
http://www.briandumpsprep.com/1z0-809-prep-exam-braindumps.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!
7 from Briandumpsprep.com.
Get Latest & Valid 1z0-809 Exam's Question and Answers 7
http://www.briandumpsprep.com/1z0-809-prep-exam-braindumps.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!
A. Option C
B. Option B
C. Option D
D. Option A
Answer: D
8 from Briandumpsprep.com.
Get Latest & Valid 1z0-809 Exam's Question and Answers 8
http://www.briandumpsprep.com/1z0-809-prep-exam-braindumps.html