Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Exam preparation

Oracle 1Z0-808 Exam Guide: Java SE 8 Programmer I

1Z0-808 is the code of the Oracle Java SE 8 Programmer I exam, part of the Oracle Database and Oracle Java certifications. You get 56 questions and 120 minutes. It is scored across 9 exam topics. 10 free practice questions with explanations are online, and each exam topic below links to the ones written for it.

1Z0-808 Exam Details

Vendor
Oracle
Exam Code
1Z0-808
Real Exam Questions
56
Time Limit
120 min
Free Practice Questions
10
Full Question Set
225
Exam Topics
9
Last Updated
December 4, 2026
Exam Name
Java SE 8 Programmer I
Question Types
MCQs
Certifications
Oracle DatabaseOracle Java
Difficulty Level
Associate
Technologies
Java SE 8Java Basics: Java Constructs and Loops
Job Role
Java developers

1Z0-808 Exam Topics and Weights

Java Basics

What this topic covers

Build Java classes with a runnable main method, compile source files with javac, and launch them with java. Use packages and explain core features such as platform independence and encapsulation.

What does javac produce, and how do you run the result?

javac compiles the source file into bytecode with a .class extension, so Report.java becomes Report.class. Launch it with java Report, using the class name without the extension. The class needs a main method declared public static void that takes a String array, or java cannot start it.

1 free 1Z0-808 practice question on Java Basics

Working with Java Data Types

What this topic covers

Declare and initialize primitive variables and object references, then use casts to control numeric operations and avoid unwanted int overflow. Access object fields and apply wrapper classes such as Integer, Double, and Boolean.

Why does casting count to long before multiplying avoid int overflow?

Casting one operand to long makes the multiplication run in long arithmetic, because binary numeric promotion widens the other operand to long. An int times an int is always computed as an int first, so the overflow happens before any later assignment to a long variable can help.

1 free 1Z0-808 practice question on Working With Java Data Types

Using Operators and Decision Constructs

What this topic covers

Apply Java operators and parentheses to control expression results, and compare objects using == or equals(). Write if, ternary, and switch logic with valid cases, breaks, and a default branch.

How does == differ from equals() when comparing two Strings?

The == operator compares references, so two Strings with identical text can still be unequal if they are separate objects. The equals() method compares the characters inside the strings. Use equals() to compare content, and use == only to check whether two references point to the same object.

1 free 1Z0-808 practice question on Using Operators and Decision Constructs

Creating and Using Arrays

What this topic covers

Declare, create, initialize, and process one-dimensional and multidimensional arrays. Use nested enhanced for loops to traverse rows independently, including rows of unequal lengths or empty rows.

Do nested enhanced for loops need the row length when rows differ?

No. The outer loop takes each row as an array, and the inner loop uses that row's own length through its enhanced for syntax. Rows of unequal length, or even empty rows, work without any special width assumption.

1 free 1Z0-808 practice question on Creating and Using Arrays

Using Loop Constructs

What this topic covers

Choose while, for, enhanced for, or do/while loops to repeat Java tasks. Use break and continue to control execution, and check a sentinel before processing or printing its value.

Why must the sentinel check come before printing in a loop?

The sentinel check must run first so that the terminating value, such as zero, ends the loop before it reaches the print statement. If printing came first, the sentinel would be displayed as data. A do/while loop runs its body once before testing, so it needs the same care.

1 free 1Z0-808 practice question on Using Loop Constructs

Working with Methods and Encapsulation

What this topic covers

Create methods with parameters, return values, and overloads, using static where members should be shared. Apply constructors, access modifiers, and private fields to preserve class invariants, and understand how arguments are passed.

Can a constructor call another constructor in the same class?

Yes, using this(..) with matching arguments. That call must be the first statement in the constructor, or the code will not compile. It lets overloaded constructors share one initialization path, so fields are set in a single place.

2 free 1Z0-808 practice questions on Working with Methods and Encapsulation

Working with Inheritance

What this topic covers

Use inheritance, abstract classes, and interfaces to structure Java types. Apply overriding and polymorphism based on the runtime object, distinguish reference and object types, and use casting, super, and this when needed.

Which method runs when a Shape reference holds a Circle object?

The overridden method in Circle runs, because instance method calls dispatch by the actual object at runtime. The reference type Shape only decides which methods the compiler allows you to call. Fields, however, are chosen by the reference type.

1 free 1Z0-808 practice question on Working with Inheritance

Handling Exceptions

What this topic covers

Distinguish checked exceptions, unchecked exceptions, and Errors, then use try-catch and throws to manage program flow. Catch specific parse failures so one malformed record does not stop later processing, and recognize common runtime exceptions.

How can a loop skip one bad record and keep processing the rest?

Put a try-catch block around each parse operation and catch the specific checked exception it declares. The catch block records the malformed record, then the loop moves on to the next one. Catching a broad Exception would also hide unrelated bugs.

1 free 1Z0-808 practice question on Handling Exceptions

Working with Selected Classes from the Java API

What this topic covers

Manipulate text with StringBuilder methods such as append and insert, and create strings with toString. Use java.time classes, ArrayList, and simple lambda expressions with Predicate.

What is the difference between append and insert in StringBuilder?

append adds text to the end of the builder, while insert(0, ..) places text at the beginning. Both change the builder itself and return it, so calls can chain. Call toString() when you need an ordinary String to store or compare.

1 free 1Z0-808 practice question on Working with Selected classes from the Java API

Related Oracle Exams

Continue to Free 1Z0-808 Exam Questions