Exam Details

  • Exam Code
    :1Z0-808
  • Exam Name
    :Java SE 8 Programmer I
  • Certification
    :Oracle Database
  • Vendor
    :Oracle
  • Total Questions
    :385 Q&As
  • Last Updated
    :May 13, 2024

Oracle Oracle Database 1Z0-808 Questions & Answers

  • Question 371:

    Given the for loop construct:

    for ( expr1 ; expr2 ; expr3 ) {

    statement;

    }

    Which two statements are true?

    A. This is not the only valid for loop construct; there exits another form of for loop constructor.

    B. The expression expr1 is optional. it initializes the loop and is evaluated once, as the loop begin.

    C. When expr2 evaluates to false, the loop terminates. It is evaluated only after each iteration through the loop.

    D. The expression expr3 must be present. It is evaluated after each iteration through the loop.

  • Question 372:

    Which three statements are true about the structure of a Java class?

    A. A class can have only one private constructor.

    B. A method can have the same name as a field.

    C. A class can have overloaded static methods.

    D. A public class must have a main method.

    E. The methods are mandatory components of a class.

    F. The fields need not be initialized before use.

  • Question 373:

    View the exhibit.

    Given the code fragment:

    Which change enables the code to print the following?

    James age: 20 Williams age: 32

    A. Replacing line 5 with public static void main (String [] args) throws MissingInfoException, AgeOutofRangeException {

    B. Replacing line 5 with public static void main (String [] args) throws.Exception {

    C. Enclosing line 6 and line 7 within a try block and adding: catch(Exception e1) { //code goes here} catch (missingInfoException e2) { //code goes here} catch (AgeOutofRangeException e3) {//code goes here}

    D. Enclosing line 6 and line 7 within a try block and adding: catch (missingInfoException e2) { //code goes here} catch (AgeOutofRangeException e3) {//code goes here}

  • Question 374:

    Given the code fragment:

    public static void main(String[] args) {

    int iArray[] = {65, 68, 69};

    iArray[2] = iArray[0];

    iArray[0] = iArray[1];

    iArray[1] = iArray[2];

    for (int element : iArray) {

    System.out.print(element + " ");

    }

    A. 68, 65, 69

    B. 68, 65, 65

    C. 65, 68, 65

    D. 65, 68, 69

    E. Compilation fails

  • Question 375:

    Given:

    public class Test {

    public static void main(String[] args) {

    int day = 1;

    switch (day) {

    case "7": System.out.print("Uranus");

    case "6": System.out.print("Saturn");

    case "1": System.out.print("Mercury");

    case "2": System.out.print("Venus");

    case "3": System.out.print("Earth");

    case "4": System.out.print("Mars");

    case "5": System.out.print("Jupiter");

    }

    }

    }

    Which two modifications, made independently, enable the code to compile and run?

    A. Adding a break statement after each print statement

    B. Adding a default section within the switch code-block

    C. Changing the string literals in each case label to integer

    D. Changing the type of the variable day to String

    E. Arranging the case labels in ascending order

  • Question 376:

    Given: What is the result?

    A. 1

    B. 1

    C. 2

    D. Compilation fails

    E. The loop executes infinite times

  • Question 377:

    Given the code fragment:

    Assume that the system date is June 20, 2014. What is the result?

    A. Option A

    B. Option B

    C. Option C

    D. Option D

  • Question 378:

    Given the code fragment:

    What is the result?

    A. 20

    B. 25

    C. 29

    D. Compilation fails

    E. AnArrayIndexOutOfBoundsException is thrown at runtime

  • Question 379:

    Given the code fragment:

    What is the result?

    A. May 04, 2014T00:00:00.000

    B. 2014-05-04T00:00: 00. 000

    C. 5/4/14T00:00:00.000

    D. An exception is thrown at runtime.

  • Question 380:

    Given the code fragment:

    And given the requirements:

    If the value of the qty variable is greater than or equal to 90, discount = 0.5 If the value of the qty variable is between 80 and 90, discount = 0.2 Which two code fragments can be independently placed at line n1 to meet the requirements?

    A. Option A

    B. Option B

    C. Option C

    D. Option D

    E. Option E

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.