Oracle 1Z0-813 Certification Sample Questions and Answers

1Z0-813 PDF, 1Z0-813 Dumps PDF Free Download, 1Z0-813 Latest Dumps Free PDF, Upgrade Java SE OCP PDF DumpsThe Oracle Upgrade Java SE OCP (1Z0-813) Sample Question Set is designed to help you prepare for the Oracle Certified Professional - Java SE 8 Programmer (OCP) certification exam. To become familiar with the actual Oracle Certification exam environment, we suggest you try our Sample Oracle 1Z0-813 Certification Practice Exam.

This Upgrade to Java SE 8 OCP (Java SE 6 and all prior versions) certification sample practice test and sample question set are designed for evaluation purposes only. If you want to test your Oracle 1Z0-813 knowledge to identify your areas of improvement and get familiar with the actual exam format, we suggest you prepare with the Premium Oracle Certified Professional - Java SE 8 Programmer (OCP) Certification Practice Exam. Our team of Oracle Java experts has designed Questions-Answers for this premium practice exam by collecting inputs from recently certified candidates. Our premium Oracle 1Z0-813 certification practice exam will boost your confidence as well as your actual Oracle Upgrade Java SE OCP exam result.

Oracle 1Z0-813 Sample Questions:

01. Which of the following is a valid lambda expression?
a) r -> {return 1==2}
b) (q) -> true
c) (x,y) -> {int test; return test>0;}
d) a,b -> true
02. In a stream pipeline, which can return a value other than a Stream?
a) Source
b) Intermediate operation
c) Terminal operation
d) None of the above
03. Which functional interface takes a double value and has a test() method?
a) DoubleConsumer
b) DoublePredicate
c) DoubleUnaryOperator
d) ToDoubleFunction
04. How do you change the value of an instance variable in an immutable class?
a) Call the setter method.
b) Remove the final modifier and set the instance variable directly.
c) Use a method other than Option A or B.
d) You can’t.
05. What are some of the properties of using the singleton pattern?
a) Singleton object can be replaced with encapsulated setter method.
b) Requires constructor of singleton class to be private.
c) Singleton object must be named instance.
d) Singleton object may be private or protected.
e) Ensures that there is only one instance of an object in memory.
f) Requires a public static method to retrieve the instance of the singleton.
06. LocalTime.of() has a number of overloads. Which of the following is not one of them?
a) LocalTime.of(int hour, int minute)
b) LocalTime.of(int hour, int minute, int second)
c) LocalTime.of(int hour, int minute, int second, int nanoOfSecond)
d) LocalTime.of(int hour, int minute, int second, int nanoOfSecond, int picoSeconds)
07. When reading file information, what is an advantage of loading a BasicFileAttributeView over a BasicFileAttributes?
a) Allows the hidden attribute to be set
b) Allows the last modified date to be changed
c) All of the file information is read in a single round-trip.
d) There is no advantage.
08. What is a common reason for a stream pipeline not to run?
a) The source doesn’t generate any items.
b) There are no intermediate operations.
c) The terminal operation is missing.
d) None of the above
09. Which of the answer choices make sense to implement with a lambda?
a) Comparable interface
b) Comparator interface
c) remove method on a Collection
d) removeAll method on a Collection
e) removeIf method on a Collection
10. How long will the effects of calling Locale.setDefault() be active assuming no other calls to that method are made?
a) Until the end of the method
b) Until the program exits
c) Until the next reboot of the computer
d) None of the above. It persists even past a reboot.


Question: 01

Answer: b

Question: 02

Answer: c

Question: 03

Answer: b

Question: 04

Answer: d

Question: 05

Answer: b, e, f

Question: 06

Answer: d

Question: 07

Answer: b 

Question: 08

Answer: c

Question: 09

Answer: b, e

Question: 10

Answer: b

Rating: 4.8 / 5 (38 votes)