Oracle 1Z0-808 Online Practice
Questions and Exam Preparation
1Z0-808 Exam Details
Exam Code
:1Z0-808
Exam Name
:Java SE 8 Programmer I
Certification
:Oracle Certifications
Vendor
:Oracle
Total Questions
:385 Q&As
Last Updated
:May 24, 2026
Oracle 1Z0-808 Online Questions &
Answers
Question 221:
Given:
What is the result?
A. A B C D B. A C D C. A C D D D. A B C C E. A B D C
C. A C D D
Explanation/Reference:
Question 222:
Given the content of three files:
Which statement is true? Which statement is true?
A. Only the A.Java file compiles successfully. B. Only the B.java file compiles successfully. C. Only the C.java file compiles successfully. D. The A.Java and B.java files compile successfully. E. The B.java and C.java files compile successfully. F. The A.Java and C.java files compile successfully.
A. Only the A.Java file compiles successfully.
Explanation/Reference:
In class B.Java doStuff() has access modifier with variable name which is not allowed. C.Java class name is different than file name. Only private classes can have different names than file names
Question 223:
Given:
What is the result?
A. 97 98 99 100 null null null B. 91 98 99 100 101 102 103 C. Compilation rails. D. A NullPointerException is thrown at runtime. E. An ArraylndexOutOfBoundsException is thrown at runtime.
E. An ArraylndexOutOfBoundsException is thrown at runtime.
Explanation/Reference:
Question 224:
Given the following four Java file definitions:
// Foo.java
package facades;
public interface Foo { }
// Boo.java
package facades;
public interface Boo extends Foo { }
// Woofy.java
package org.domain
// line n1
public class Woofy implements Boo, Foo { }
// Test.java
package.org;
public class Test {
public static void main(String[] args) {
Foo obj=new Woofy();
Which set modifications enable the code to compile and run?
A. At line n1, Insert: import facades;At line n2, insert:import facades;import org.domain; B. At line n1, Insert: import facades.*;At line n2, insert:import facades;import org.*; C. At line n1, Insert: import facades.*;At line n2, insert:import facades.Boo;import org.*; D. At line n1, Insert: import facades.Foo, Boo;At line n2, insert:import org.domain.Woofy; E. At line n1, Insert: import facades.*;At line n2, insert:import facades;import org.domain.Woofy;
E. At line n1, Insert: import facades.*;At line n2, insert:import facades;import org.domain.Woofy;
A. message = Hi everyone! B. message = Hi XvXryonX! C. A compile time error is produced. D. A runtime error is produced. E. message = F. message = Hi Xveryone!
B. message = Hi XvXryonX!
Question 227:
Given the code fragment:
A. Super Sub Sub B. Contract Contract Super C. Compilation fails at line n1 D. Compilation fails at line n2
D. Compilation fails at line n2
Question 228:
Given:
What is the result?
A. 3 4 5 6 B. 3 4 3 6 C. 5 4 5 6 D. 3 6 5 6
D. 3 6 5 6
Explanation/Reference:
Question 229:
Which of the following will print current time?
A. System.out.print(new LocalTime()-now0); B. System.out.print(new LocalTime()); C. System.ouLprint(LocalTime.now()); D. System.ouLprint(LocalTime.today()); E. None of the above.
C. System.ouLprint(LocalTime.now());
Explanation/Reference:
The LocalTime is an interface, so we can't use new keyword with them. So options A and C are incorrect.
To get current time we can call now method on LocalTime interface. So option C is correct. Option D is incorrect as there is no method called today as in LocalTime interface https://docs.oracle.com/javase/tutorial/datetime/iso/datetime.html
Question 230:
Consider
Integer number = Integer.valueOff 808.1");
Which is true about the above statement?
A. The value of the variable number will be 808.1 B. The value of the variable number will be 808 C. The value of the variable number will be 0. D. A NumberFormatException will be throw. E. It will not compile.
D. A NumberFormatException will be throw.
Explanation/Reference:
The Integer class value of 0 returns an Integer from given string. But we need to pass string which has correct format for integer otherwise it will throw a NumberFormatException. In this case we have passed string which is not an integer value (since what we passed is fractional number), so option D is correct.
Nowadays, the certification exams become more and more important and required by more and more
enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare
for the exam in a short time with less efforts? How to get a ideal result and how to find the
most reliable resources? Here on Vcedump.com, you will find all the answers.
Vcedump.com provide not only Oracle exam questions,
answers and explanations but also complete assistance on your exam preparation and certification
application. If you are confused on your 1Z0-808 exam preparations
and Oracle certification application, do not hesitate to visit our
Vcedump.com to find your solutions here.