Oracle Oracle Java

Oracle 1z0-808 Exam Dumps

Java SE 8 Programmer I

Exam code
1z0-808
Questions
224
Updated
25 Nov 2026
  • Instant access from My Account after payment
  • 90 days of free updates
  • Money-back guarantee – see conditions
  • Help by live chat or email
Choose a format
Try free sample questions

Prices in USD. Downloads appear in My Account once your order is complete.

  • Instant access from My Account after payment
  • 90 days of free updates
  • Money-back guarantee – see conditions
  • Help by live chat or email
Free demo

1z0-808 sample questions

Check the style and quality of the material before you buy.

Question 1

Which two code fragments cause a compilation error? (Choose two.)

  • A. float flt = 100.00F;
  • B. float flt = (float) 1_11.00;
  • C. Float flt = 100.00;
  • D. double y1 = 203.22;float flt = y1;
  • E. int y2 = 100;float flt = (float) y2 ;

Answer: A,D

Question 2

Which two code fragments cause compilation errors? (Choose two.)

  • A. double y1 = 203.22; float fit = y1;
  • B. float fit = (float) 1_11.00;
  • C. Float fit = 100.00;
  • D. int y2 = 100;float fit = (float) y2;
  • E. float fit = 100.00F;

Answer: B,D

Question 3

Which three statements are true about the structure of a Java class? (Choose three.)

  • A. A class cannot have the same name as its field.
  • B. A public class must have a main method.
  • C. A class can have final static methods.
  • D. A class can have overloaded private constructors.
  • E. Fields need to be initialized before use.
  • F. Methods and fields are optional components of a class.

Answer: B,D,E

Question 4

Which three statements are true about exception handling? (Choose three.)

  • A. Only unchecked exceptions can be rethrown.
  • B. All subclasses of the RuntimeException class are not recoverable.
  • C. The parameter in a catch block is of Throwable type.
  • D. All subclasses of the RuntimeException class must be caught or declared to be thrown.
  • E. All subclasses of the RuntimeException class are unchecked exceptions.
  • F. All subclasses of the Error class are not recoverable.

Answer: B,C,D

Question 5

Which statement is true about the switch statement?

  • A. It must contain the default section.
  • B. The break statement, at the end of each case block, is mandatory.
  • C. Its case label literals can be changed at runtime.
  • D. Its expression must evaluate to a single value.

Answer: D

Explanation

References

Question 6

What is the name of the Java concept that uses access modifiers to protect variables andhide them within a class?

  • A. Encapsulation
  • B. Inheritance
  • C. Abstraction
  • D. Instantiation
  • E. Polymorphism

Answer: A

Explanation

Using the private modifier is the main way that an object encapsulates itself and hide data from the outside world.

References

Question 7

Which two initialization statements are valid? (Choose two.)

  • A. Boolean available = “TRUE”:
  • B. String tmpAuthor = author, author =”Mc Donald”;
  • C. Double price = 200D;
  • D. Integer pages = 20;
Question 8

Which statement is true about Java byte code?

  • A. It can run on any platform.
  • B. It can run on any platform only if it was compiled for that platform.
  • C. It can run on any platform that has the Java Runtime Environment.
  • D. It can run on any platform that has a Java compiler.
  • E. It can run on any platform only if that platform has both the Java Runtime Environmentand a Java compiler.

Answer: D

Explanation

Java bytecodes help make "write once, run anywhere" possible. You can compile your program into bytecodes on any platform that has a Java compiler. The bytecodes can then be run on any implementation of the Java VM. That means that as long as a computer has a Java VM, the same program written in the Java programming language can run on Windows 2000, a Solaris workstation, or on an iMac.

References

Question 9

Which two statements are true about Java byte code? (Choose two.)

  • A. It can be serialized across network.
  • B. It can run on any platform that has a Java compiler.
  • C. It can run on any platform.
  • D. It has “.java” extension.
  • E. It can run on any platform that has the Java Runtime Environment.

Answer: A,E

Question 10

Which two statements are true? (Choose two.)

  • A. Error class is unextendable.
  • B. Error class is extendable.
  • C. Error is a RuntimeException.
  • D. Error is an Exception.
  • E. Error is a Throwable.

Answer: B,C

Why Dumpsforsure is the best choice for Oracle 1z0-808 exam preparation

Secure your position in a competitive IT industry

The Oracle 1z0-808 certification is a strong way to demonstrate your understanding and ability. Our 1z0-808 questions & answers help you prepare for it, so you can secure your current position and move your career forward.

Reviewed by IT professionals

We keep our 1z0-808 exam dumps up to date, with explanations. The questions and answers on Dumpsforsure are reviewed by people with professional experience of Oracle technologies.

One place to prepare

Dumpsforsure brings together the material you need for the Oracle 1z0-808 exam. Explanations are added to the questions to help you understand the logic behind them and prepare for other Oracle exams.

Updated 1z0-808 questions & answers

We update the exam files regularly to add new questions. The date of the latest update is shown at the top of this page.

Free 1z0-808 demo before you buy

You can view sample 1z0-808 questions on this page before buying, to see the format and pattern of the material.

90 days of free updates

You are eligible for 90 days of free updates after buying the 1z0-808 exam. If the file is updated in that time, you can download the latest version from your account.

Ready to prepare?

Oracle 1z0-808 · 224 questions

Choose a format