Oracle 1Z0-808 Certification Sample Questions and Answers

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

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

Oracle 1Z0-808 Sample Questions:

01. If a try statement has catch blocks for both Exception and IOException, then which of the following statements is correct?
a) The catch block for Exception must appear before the catch block for IOException.
b) The catch block for IOException must appear before the catch block for Exception.
c) The catch blocks for these two exception types can be declared in any order.
d) A try statement cannot be declared with these two catch block types because they are incompatible.
02. A method is declared to take three arguments. A program calls this method and passes only two arguments. What is the result?
a) Compilation fails.
b) The third argument is given the value null.
c) The third argument is given the value void.
d) The third argument is given the value zero.
e) The third argument is given the appropriate false value for its declared type.
f) An exception occurs when the method attempts to access the third argument.
03. Which of the following is a valid JavaBean method signature?
a) public void getArrow()
b) public void setBow()
c) public void setRange(int range)
d) public String addTarget(String target)
04. How do you force garbage collection to occur at a certain point?
a) Call System.forceGc()
b) Call System.gc()
c) Call System.requireGc()
d) None of the above
05. What is the value of that Number after the execution of the following code snippet?
long thatNumber = 5 >= 5 ? 1+2 : 1*1;
if(++thatNumber < 4)
thatNumber += 1;
a) 3
b) 4
c) 5
d) The answer cannot be determined until runtime.
06. Which three are advantages of the Java exception mechanism?
a) Improves the program structure because the error handling code is separated from the normal program function
b) Provides a set of standard exceptions that covers all the possible errors
c) Improves the program structure because the programmer can choose where to handle exceptions
d) Improves the program structure because exceptions must be handled in the method in which they occurred
e) Allows the creation of new exceptions that are tailored to the particular program being created
07. When you’re organizing the elements in a class, which order is preferred?
a) Data members, methods, constructors
b) Data members, constructors, methods
c) Constructors, methods, data members
d) Constructors, data members, methods
e) Methods, constructors, data members
08. Which usage represents a valid way of compiling java source file with the name "Main"?
a) javac
b) java Main.class
c) java
d) javac Main
e) java Main
09. Which of these array declarations is not legal?
a) int[][] scores = new int[5][];
b) Object[][][] cubbies = new Object[3][0][5];
c) String beans[] = new beans[6];
d) java.util.Date[] dates[] = new java.util.Date[2][];
e) int[][] types = new int[];
f) int[][] java = new int[][];
10. "You have a list orders of PurchaseOrder objects, each with a date, a Customer and a state. You want filter list in various ways"
Which of the following in built functional interface you are going to use for above?
a) UnaryOperator<T>
b) Consumer<T>
c) Supplier<T>
d) Predicate<T>


Question: 01

Answer: b

Question: 02

Answer: a

Question: 03

Answer: c

Question: 04

Answer: d

Question: 05

Answer: b

Question: 06

Answer: a, c, e

Question: 07

Answer: b

Question: 08

Answer: a

Question: 09

Answer: c, e, f

Question: 10

Answer: d

Rating: 4.8 / 5 (34 votes)