2014 Latest Oracle 1Z0-852 Exam Demo Free Download!

QUESTION 1
Given:
1. public class Base {
2. public static final String FOO = “foo”;
3. public static void main(String[] args) {
4. Base b = new Base();
5. Sub s = new Sub();
6. System.out.print(Base.FOO);
7. System.out.print(Sub.FOO);
8. System.out.print(b.FOO);
9. System.out.print(s.FOO);
10. System.out.print(((Base)s).FOO);
11. } }
12. class Sub extends Base {public static final String FOO=”bar”;}
What is the result?

A.    foofoofoofoofoo
B.    foobarfoobarbar
C.    foobarfoofoofoo
D.    foobarfoobarfoo
E.    barbarbarbarbar
F.    foofoofoobarbar
G.    foofoofoobarfoo

Answer: D

QUESTION 2
A company has a business application that provides its users with many different reports: receivables reports, payables reports, revenue projects, and so on. The company has just purchased some new, state-of-the-art, wireless printers, and a programmer has been assigned the task of enhancing all of the reports to use not only the company’s old printers, but the new wireless printers as well. When the programmer starts looking into the application, the programmer discovers that because of the design of the application, it is necessary to make changes to each report to support the new printers. Which two design concepts most likely explain this situation? (Choose two.)

A.    Inheritance
B.    Low cohesion
C.    Tight coupling
D.    High cohesion
E.    Loose coupling
F.    Object immutability

Answer: BC

 

QUESTION 3
Given:
5. class Building { }
6. public class Barn extends Building {
7. public static void main(String[] args) {
8. Building build1 = new Building();
9. Barn barn1 = new Barn();
The safer , easier way to help you pass any IT exams.
3 / 8
10. Barn barn2 = (Barn) build1;
11. Object obj1 = (Object) build1;
12. String str1 = (String) build1;
13. Building build2 = (Building) barn1;
14. }
15. }
Which is true?

A.    If line 10 is removed, the compilation succeeds.
B.    If line 11 is removed, the compilation succeeds.
C.    If line 12 is removed, the compilation succeeds.
D.    If line 13 is removed, the compilation succeeds.
E.    More than one line must be removed for compilation to succeed.

Answer: C

QUESTION 4
Given:
10. abstract class A {
11. abstract void a1();
12. void a2() { }
13. }
14. class B extends A {
15. void a1() { }
16. void a2() { }
17. }
18. class C extends B { void c1() { } }
and:
A x = new B(); C y = new C(); A z = new C();
What are four valid examples of polymorphic method calls? (Choose four.)

A.    x.a2();
B.    z.a2();
C.    z.c1();
D.    z.a1();
E.    y.c1();
F.    x.a1();

Answer: ABDF
QUESTION 5
A company that makes Computer Assisted Design (CAD) software has, within its application, some utility classes that are used to perform 3D rendering tasks. The company’s chief scientist has just improved the performance of one of the utility classes’ key rendering algorithms, and has assigned a programmer to replace the old algorithm with the new algorithm. When the programmer begins researching the utility classes, she is happy to discover that the algorithm to be replaced exists in only one class. The programmer reviews that class’s API, and replaces the old algorithm with the new algorithm, being careful that her changes adhere strictly to the class’s API. Once testing has begun, the programmer discovers that other classes that use the class she changed are no longer working properly. What design flaw is most likely the cause of these new bugs?

A.    Inheritance
B.    Tight coupling
C.    Low cohesion
D.    High cohesion
E.    Loose coupling
F.    Object immutability

Answer: B

QUESTION 6
Given:
11. class Mammal { }
12.
13. class Raccoon extends Mammal {
14. Mammal m = new Mammal();
15. }
16.
17. class BabyRaccoon extends Mammal { }
Which four statements are true? (Choose four.)

A.    Raccoon is-a Mammal.
B.    Raccoon has-a Mammal.
C.    BabyRaccoon is-a Mammal.
D.    BabyRaccoon is-a Raccoon.
E.    BabyRaccoon has-a Mammal.
F.    BabyRaccoon is-a BabyRaccoon.

Answer: ABCF

QUESTION 7
Given:
2. public class Hi {
3. void m1() { }
4. protected void() m2 { }
5. } 6. class Lois extends Hi {
7. // insert code here
8. }
Which four code fragments, inserted independently at line 7, will compile? (Choose four.)

A.    public void m1() { }
B.    protected void m1() { }
C.    private void m1() { }
D.    void m2() { }
E.    public void m2() { }
F.    protected void m2() { }
G.    private void m2() { }

Answer: ABEF

QUESTION 8
Given that:
Gadget has-a Sprocket and
Gadget has-a Spring and
Gadget is-a Widget and
Widget has-a Sprocket
Which two code fragments represent these relationships? (Choose two.)

A.    class Widget { Sprocket s; }
class Gadget extends Widget { Spring s; }
B.    class Widget { }
class Gadget extends Widget { Spring s1; Sprocket s2; }
C.    class Widget { Sprocket s1; Spring s2; }
class Gadget extends Widget { }
D.    class Gadget { Spring s; }
class Widget extends Gadget{ Sprocket s; }
E.    class Gadget { }
class Widget extends Gadget{ Sprocket s1; Spring s2; }
F.    class Gadget { Spring s1; Sprocket s2; }
class Widget extends Gadget{ }

Answer: AC

QUESTION 9
Given the following six method names:
addListener
addMouseListener
setMouseListener
deleteMouseListener
removeMouseListener
registerMouseListener
How many of these method names follow JavaBean Listener naming rules?

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

Answer: B

QUESTION 10
Click the Exhibit button. Which three statements are true? (Choose three.)
 clip_image001

A.    Compilation fails.
B.    The code compiles and the output is 2.
C.    If lines 16, 17 and 18 were removed, compilation would fail.
D.    If lines 24, 25 and 26 were removed, compilation would fail.
E.    If lines 16, 17 and 18 were removed, the code would compile and the output would be2.
F.    If lines 24, 25 and 26 were removed, the code would compile and the output would be 1.

Answer: BEF
Passing your Oracle 1Z0-852 Exam by using the latest 1Z0-852 Exam Dump Full Version: http://www.braindump2go.com/1z0-852.html

         

Categories Oracle Exam

Post Author: mavis

Categories

Archives

Cisco Exam Dumps Download

200-301 PDF and VCE Dumps

200-901 PDF and VCE Dumps

350-901 PDF and VCE Dumps

300-910 PDF and VCE Dumps

300-915 PDF and VCE Dumps

300-920 PDF and VCE Dumps

350-401 PDF and VCE Dumps

300-410 PDF and VCE Dumps

300-415 PDF and VCE Dumps

300-420 PDF and VCE Dumps

300-425 PDF and VCE Dumps

300-430 PDF and VCE Dumps

300-435 PDF and VCE Dumps

350-401 PDF and VCE Dumps

350-401 PDF and VCE Dumps

350-801 PDF and VCE Dumps

300-810 PDF and VCE Dumps

300-815 PDF and VCE Dumps

300-820 PDF and VCE Dumps

300-835 PDF and VCE Dumps

350-801 PDF and VCE Dumps

200-201 PDF and VCE Dumps

350-601 PDF and VCE Dumps

300-610 PDF and VCE Dumps

300-615 PDF and VCE Dumps

300-620 PDF and VCE Dumps

300-625 PDF and VCE Dumps

300-635 PDF and VCE Dumps

600-660 PDF and VCE Dumps

350-601 PDF and VCE Dumps

352-001 PDF and VCE Dumps

350-701 PDF and VCE Dumps

300-710 PDF and VCE Dumps

300-715 PDF and VCE Dumps

300-720 PDF and VCE Dumps

300-725 PDF and VCE Dumps

300-730 PDF and VCE Dumps

300-735 PDF and VCE Dumps

350-701 PDF and VCE Dumps

350-501 PDF and VCE Dumps

300-510 PDF and VCE Dumps

300-515 PDF and VCE Dumps

300-535 PDF and VCE Dumps

350-501 PDF and VCE Dumps

010-151 PDF and VCE Dumps

100-490 PDF and VCE Dumps

810-440 PDF and VCE Dumps

820-445 PDF and VCE Dumps

840-450 PDF and VCE Dumps

820-605 PDF and VCE Dumps

700-805 PDF and VCE Dumps

700-070 PDF and VCE Dumps

600-455 PDF and VCE Dumps

600-460 PDF and VCE Dumps

500-173 PDF and VCE Dumps

500-174 PDF and VCE Dumps

200-401 PDF and VCE Dumps

644-906 PDF and VCE Dumps

600-211 PDF and VCE Dumps

600-212 PDF and VCE Dumps

600-210 PDF and VCE Dumps

600-212 PDF and VCE Dumps

700-680 PDF and VCE Dumps

500-275 PDF and VCE Dumps

500-285 PDF and VCE Dumps

600-455 PDF and VCE Dumps

600-460 PDF and VCE Dumps

Microsoft Exams Will Be Retired

AZ-103(retiring August 31, 2020)

AZ-203(retiring August 31, 2020)

AZ-300(retiring August 31, 2020)

AZ-301(retiring August 31, 2020)

77-419(retiring June 30, 2020)

70-333(retiring January 31, 2021)

70-334(retiring January 31, 2021)

70-339(retiring January 31, 2021)

70-345(retiring January 31, 2021)

70-357(retiring January 31, 2021)

70-410(retiring January 31, 2021)

70-411(retiring January 31, 2021)

70-412(retiring January 31, 2021)

70-413(retiring January 31, 2021)

70-414(retiring January 31, 2021)

70-417(retiring January 31, 2021)

70-461(retiring January 31, 2021)

70-462(retiring January 31, 2021)

70-463(retiring January 31, 2021)

70-464(retiring January 31, 2021)

70-465(retiring January 31, 2021)

70-466(retiring January 31, 2021)

70-467(retiring January 31, 2021)

70-480(retiring January 31, 2021)

70-483(retiring January 31, 2021)

70-486(retiring January 31, 2021)

70-487(retiring January 31, 2021)

70-537(retiring January 31, 2021)

70-705(retiring January 31, 2021)

70-740(retiring January 31, 2021)

70-741(retiring January 31, 2021)

70-742(retiring January 31, 2021)

70-743(retiring January 31, 2021)

70-744(retiring January 31, 2021)

70-745(retiring January 31, 2021)

70-761(retiring January 31, 2021)

70-762(retiring January 31, 2021)

70-764(retiring January 31, 2021)

70-765(retiring January 31, 2021)

70-767(retiring January 31, 2021)

70-768(retiring January 31, 2021)

70-777(retiring January 31, 2021)

70-778(retiring January 31, 2021)

70-779(retiring January 31, 2021)

MB2-716(retiring January 31, 2021)

MB6-894(retiring January 31, 2021)

MB6-897(retiring January 31, 2021)

MB6-898(retiring January 31, 2021)