[Free] 2018(Jan) EnsurePass Testinsides Oracle 1z0-850 Dumps with VCE and PDF 1-10

By | January 25, 2018

Ensurepass.com : Ensure you pass the IT Exams
2018 Jan Oracle Official New Released 1z0-850
100% Free Download! 100% Pass Guaranteed!
http://www.EnsurePass.com/1z0-850.html

Java Standard Edition 5 and 6, Certified Associate Exam

Question No: 1 – (Topic 1)

Which two are true? (Choose two.)

  1. J2EE runs on consumer and embedded devices.

  2. J2EE includes the MIDP API.

  3. J2EE includes servlet APIs and EJB APIs.

  4. J2EE application developers need J2SE.

  5. J2EE applications depend on web servers.

Answer: C,D

Question No: 2 – (Topic 1)

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

  1. servlets

  2. JAX-RPC

  3. JMS

  4. entity beans

  5. JSP

    Answer: A,E

    Question No: 3 – (Topic 1)

    Given:

    1. class Test {

    2. public static void main(String args[]) {

    3. int num1 = 10, num2 = 20, result;

    4. result = calc(num1, num2);

    5. System.out.println(result);

6. }

7.

  1. // insert code here 9. }

    Which, inserted at line 8, produces the output 30?

    1. static int calc(int n1, int n2) { return; }

    2. public int calc(int n1, int n2) { return n1 n2; }

    3. public int calc(int n1, int n2) { return; }

    4. static int calc(int n1, int n2) { return n1 n2; }

    5. static void calc(n1, n2) { return (n1 n2); }

    6. static int calc(int n1, n2) { return n1, n2; };

      Answer: D

      Question No: 4 – (Topic 1)

      Given:

      1. public abstract class Wow {

      2. private int wow;

      3. public Wow(int wow) {

      4. this.wow = wow; 5. }

  1. public void wow() { }

  2. private void wowza() { } 8. }

    Which is true about the class Wow?

    1. It does NOT compile because an abstract class must have at least one abstract method.

    2. It does NOT compile because an abstract class CANNOT have instance variables.

    3. It compiles without error.

    4. It does NOT compile because an abstract class CANNOT have private methods.

    5. It does NOT compile because an abstract class must have a constructor with no arguments.

      Answer: C

      Question No: 5 – (Topic 1)

      Given:

      1. class X {

      2. private Y y;

      3. public X(Y y) { this.y = y; } 4. }

  1. class Y {

  2. private X x;

  3. public Y() { }

  4. public Y(X x) { this.x = x; } 9. }

    The instance variable y is intended to represent the composition relationship quot;X is composed of Y.quot;

    Which code correctly maintains this meaning?

    1. X x1 = new X(new Y()); X x2 = new X(new Y());

    2. X xx = new X(null); Y y1 = new Y(xx);

      Y y2 = new Y(xx);

    3. Y yy = new Y(); X x1 = new X(yy); X x2 = new X(yy);

    4. Y y1 = new Y(new X(null));

Y y2 = new Y(new X(null));

Answer: A

Question No: 6 – (Topic 1)

Which type of J2EE component is used to store business data persistently?

  1. stateless session beans

  2. JavaBeans

  3. stateful session beans

  4. entity beans

  5. JavaServer Pages

Answer: D

Question No: 7 – (Topic 1)

What is the purpose of JNDI?

  1. to access native code from a Java application

  2. to parse XML documents

  3. to access various directory services using a single interface

  4. to register Java Web Start applications with a web server

Answer: C

Question No: 8 – (Topic 1)

Which two are true about HTML? (Choose two.)

  1. HTML can set up hypertext links between documents.

  2. HTML uses tags to structure text into headings, paragraphs, and lists.

  3. HTML is an object-oriented programming language.

  4. HTML documents CANNOT be browsed by a text editor.

Answer: A,B

Question No: 9 – (Topic 1)

Given:

  1. class Example {

  2. int x = 50; 6. int y = 100;

7. public static void main(String args[]) { 8. int x = 0, y = 10;

  1. Example ex = new Example();

  2. while (x lt; 3) { 11. x ; y-;

12. }

13. System.out.println(quot;x = quot; x quot; , y = quot; y);

14. }

15. }

What is the result?

A. Compilation fails because of an error at line 8.

B. x = 3 , y = 7

  1. Compilation fails because of an error at line 11.

  2. Compilation fails because of an error at line 9.

E. x = 53 , y = 97

F. Compilation fails because of an error at line 10.

Answer: B

Question No: 10 – (Topic 1)

You have developed a MIDlet that runs on a Java-enabled Personal Digital Assistant (PDA) device. Now, your employer has asked you to port the MIDlet to run on other Java platforms. Which is true?

  1. The MIDlet is 100% portable across all J2ME devices.

  2. The MIDlet can run within a standard web browser.

  3. The MIDlet is guaranteed to run correctly under J2SE.

  4. The MIDlet is NOT guaranteed to run on a Java technology-enabled phone.

Answer: D

100% Ensurepass Free Download!
Download Free Demo:1z0-850 Demo PDF
100% Ensurepass Free Guaranteed!
1z0-850 Dumps

EnsurePass ExamCollection Testking
Lowest Price Guarantee Yes No No
Up-to-Dated Yes No No
Real Questions Yes No No
Explanation Yes No No
PDF VCE Yes No No
Free VCE Simulator Yes No No
Instant Download Yes No No

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.