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 321:

    Given:

    class Base {

    public static void main(String[] args) {

    System.out.println("Base " + args[2]);

    }

    }

    public class Sub extends Base{

    public static void main(String[] args) {

    System.out.println("Overriden " + args[1]);

    }

    }

    And the commands:

    javac Sub.java

    java Sub 10 20 30

    What is the result?

    A. Base 30
    B. Overridden 20
    C. Overridden 20 Base 30
    D. Base 30 Overridden 20

  • Question 322:

    Which two statements are true for a two-dimensional array of primitive data type?

    A. It cannot contain elements of different types.
    B. The length of each dimension must be the same.
    C. At the declaration time, the number of elements of the array in each dimension must be specified.
    D. All methods of the class object may be invoked on the two-dimensional array.

  • Question 323:

    Given the code fragment:

    int b = 3;

    if ( !(b > 3)) {

    System.out.println("square ");

    }{

    System.out.println("circle ");

    }

    System.out.println("...");

    What is the result?

    A. square...
    B. circle...
    C. squarecircle...
    D. Compilation fails.

  • Question 324:

    Given the code fragment:

    Which two modifications should you make so that the code compiles successfully?

    A. Replace line 13 with:
    B. Replace line 7 with throw IOException ("Exception raised");
    C. Replace line 11 with public static void main(String[ ]) args) throws Exception {
    D. At line 14, insert throw new IOException ();
    E. Replace line 5 with public void printFileContent () throws IOException {

  • Question 325:

    Given the code fragment:

    What is the result?

    A. A B C Work done
    B. A B C D Work done
    C. A Work done
    D. Compilation fails

  • Question 326:

    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.

  • Question 327:

    Given the code fragment:

    Which option represents the state of the num array after successful completion of the outer loop?

    A. Option A
    B. Option B
    C. Option C
    D. Option D

  • Question 328:

    Given:

    What is the result?

    A. Good Luck!
    B. Good Day!
    C. Welcome!
    D. Hello!

  • Question 329:

    Given:

    and the code fragment:

    What is the result?

    A. true:false:true
    B. false:true:true
    C. false:true:false
    D. true:true:false

  • Question 330:

    Given the code fragment:

    What is the result?

    A. Match 1
    B. Match 2
    C. No Match
    D. A NullPointerException is thrown at runtime.

Tips on How to Prepare for the Exams

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.