1Z0-850 Exam Details

  • Exam Code
    :1Z0-850
  • Exam Name
    :Java SE 5 and 6, Certified Associate
  • Certification
    :Oracle Certifications
  • Vendor
    :Oracle
  • Total Questions
    :242 Q&As
  • Last Updated
    :Dec 07, 2021

Oracle 1Z0-850 Online Questions & Answers

  • Question 101:

    Given:

    1.

    public class Boat{

    2.

    // insert code here

    3.

    public void setGas(int v){

    4.

    gas = v;

    5.

    }

    6.

    }

    Which, inserted at line 2, is valid and demonstrates encapsulation?

    A. protected int gas;
    B. private int gas;
    C. public int gas;
    D. struct int gas;

  • Question 102:

    A Java programmer wants to develop a browser-based multitier application for a large bank. Which Java edition (or editions) should be used to develop this system?

    A. only J2ME
    B. J2SE and J2EE
    C. J2SE and J2ME
    D. only J2SE
    E. only J2EE
    F. J2EE and J2ME

  • Question 103:

    Given:

    3.

    int calc() {

    4.

    long x = 40L;

    5.

    int i = 30;

    6.

    i = x;

    7.

    System.out.println("result is: " + i);

    8.

    }

    What is the result of calling calc()?

    A. Compilation fails because of an error at line 6.
    B. Compilation fails because of an error at line 4.
    C. result is: 40
    D. result is: 30

  • Question 104:

    Given:

    1.

    public interface Player {

    2.

    // insert code here

    3.

    // insert code here

    4.

    }

    5.

    class F implements Player {

    6.

    public void play(){

    7.

    // ...

    8.

    }

    9.

    public void stop(){

    10.

    // ...

    11.

    }

    12.

    }

    Which two, inserted independently at lines 2 and 3, allow the code to compile? (Choose two.)

    A. void play();void stop();
    B. final void play();final void stop();
    C. public void play();public void stop();
    D. void play();int stop();
    E. static void play();static void stop();
    F. private void play();private void stop();

  • Question 105:

    Which is a valid definition of an interface called Transportable given another valid interface, Movable?

    A. class Movable extends Transportable { /*...*/ }
    B. interface Transportable extends Movable { /*...*/ }
    C. class Movable implements Transportable { /*...*/ }
    D. interface Transportable implements Movable { /*...*/ }

  • Question 106:

    Which two are associated with the business tier in a J2EE web-based application? (Choose two.)

    A. Swing applications
    B. JMS
    C. JDBC
    D. applets
    E. servlets

  • Question 107:

    Which two are true? (Choose two.)

    A. J2EE runs on consumer and embedded devices.
    B. J2EE includes the MIDP API.
    C. J2EE includes servlet APIs and EJB APIs.
    D. J2EE application developers need J2SE.
    E. J2EE applications depend on web servers.

  • Question 108:

    Click the Exhibit button. Which two are true? (Choose two.)

    A. Every Flurb is associated with exactly one Flurb.
    B. There can only be one instance of the Flurb class.
    C. Every Flurb contains a reference to itself.
    D. There must always be an even number of Flurb instances.
    E. A Flurb can be associated with itself, but it also could be associated with a different Flurb.

  • Question 109:

    Which two keywords directly support looping? (Choose two.)

    A. foreach
    B. switch
    C. while
    D. if
    E. for

  • Question 110:

    Given:

    6.

    int time = 12;

    7.

    if ( time < 12 ) {

    8.

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

    9.

    }

    10.

    // insert code here

    11.

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

    12.

    }

    13.

    else if ( time >= 18 ) {

    14.

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

    15.

    }

    Which three, inserted independently at line 10, produce the output Good afternoon? (Choose three.)

    A. else if ( time < 12 || time > 18) {
    B. if ( time >= 12 andand time < 18 ) {
    C. else if ( time > 12 andand time >= 18 ) {
    D. else if ( time >= 12 || time < 18 ) {
    E. else if ( time > 12 || time

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