1Z0-803 Exam Details

  • Exam Code
    :1Z0-803
  • Exam Name
    :Java SE 7 Programmer I
  • Certification
    :Oracle Certifications
  • Vendor
    :Oracle
  • Total Questions
    :216 Q&As
  • Last Updated
    :Oct 18, 2021

Oracle 1Z0-803 Online Questions & Answers

  • Question 161:

    Class StaticField {

    static int i = 7;

    public static void main(String[] args) {

    StaticFied obj = new StaticField();

    obj.i++;

    StaticField.i++;

    obj.i++;

    System.out.println(StaticField.i + " "+ obj.i);

    }

    }

    What is the result?

    A. 10 10
    B. 8 9
    C. 9 8
    D. 7 10

  • Question 162:

    Given:

    public class Marklist {

    int num;

    public static void graceMarks(Marklist obj4) {

    obj4.num += 10;

    }

    public static void main(String[] args) {

    MarkList obj1 = new MarkList();

    MarkList obj2 = obj1;

    MarkList obj1 = null;

    obj2.num = 60;

    graceMarks(obj2);

    }

    }

    How many objects are created in the memory runtime?

    A. 1
    B. 2
    C. 3
    D. 4

  • Question 163:

    Given:

    What is the result?

    A. Red 0 Orange 0 Green 3
    B. Red 0 Orange 0 Green 6
    C. Red 0 Orange 1
    D. Green 4
    E. Compilation fails

  • Question 164:

    Given:

    public class ScopeTest {

    int j, int k;

    public static void main(String[] args) {

    ew ScopeTest().doStuff(); }

    void doStuff() {

    nt x = 5;

    oStuff2();

    System.out.println("x");

    }

    void doStuff2() {

    nt y = 7;

    ystem.out.println("y");

    or (int z = 0; z < 5; z++) {

    ystem.out.println("z");

    ystem.out.println("y");

    }

    Which two items are fields?

    A. j
    B. k
    C. x
    D. y
    E. z

  • Question 165:

    Given:

    A. a, e i, o
    B. a, e o, o
    C. e, e I, o
    D. e, e o, o

  • Question 166:

    The protected modifier on a Field declaration within a public class means that the field ______________.

    A. Cannot be modified
    B. Can be read but not written from outside the class
    C. Can be read and written from this class and its subclasses only within the same package
    D. Can be read and written from this class and its subclasses defined in any package

  • Question 167:

    View the exhibit:

    public class Student {

    public String name = "";

    public int age = 0;

    public String major = "Undeclared";

    public boolean fulltime = true;

    public void display() {

    System.out.println("Name: " + name + " Major: " + major); } public boolean isFullTime() { return fulltime;

    }

    }

    Which line of code initializes a student instance?

    A. Student student1;
    B. Student student1 = Student.new();
    C. Student student1 = new Student();
    D. Student student1 = Student();

  • Question 168:

    Given:

    public class ColorTest {

    public static void main(String[] args) {

    String[] colors = {"red", "blue","green","yellow","maroon","cyan"}; int count = 0;

    for (String c : colors) {

    if (count >= 4) {

    break;

    }

    else {

    continue;

    }

    if (c.length() >= 4) {

    colors[count] = c.substring(0,3);

    }

    count++;

    }

    System.out.println(colors[count]);

    }

    }

    What is the result?

    A. Yellow
    B. Maroon
    C. Compilation fails
    D. A StringIndexOutOfBoundsException is thrown at runtime.

  • Question 169:

    Given the code fragments:

    What is the result?

    A. Super Sub Sub
    B. Contract Contract Super
    C. Compilation fails at line n1
    D. Compilation fails at line n2

  • Question 170:

    Given the code fragment:

    System.out.printIn("Result: " + 2 + 3 + 5); System.out.printIn("Result: " + 2 + 3 * 5);

    What is the result?

    A. Result: 10 Result: 30
    B. Result: 10 Result: 25
    C. Result: 235 Result: 215
    D. Result: 215 Result: 215
    E. Compilation fails

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-803 exam preparations and Oracle certification application, do not hesitate to visit our Vcedump.com to find your solutions here.