Java Standard Edition 5 Programmer Certified Professional Upgrade

Page 1

1Z0-854

Oracle

Java Standard Edition 5 Programmer Certified Professional Upgrade Click the link below to buy full version as Low as $25 http://www.examkill.com/1Z0-854.html

ExamKill is team of experienced and educated professionals working day and night to develop preparation material for different fields in IT. These industries are including HP, IBM, Comptia, Orcale, Apple, Adobe, Nortel, Novell, Checkpoint etc with the following features.

Free Samples:

Free samples download are available for almost every product to check before

buy.

Complete Course Coverage: Experienced professionals are making sure to cover complete course so that you pass final exam.

Updated Material: Preparation material is updated and new; you can compare us with other providers in the same industry.

Privacy Protection:

Examkill team makes sure not to reveal your private information

including your credit card and other secret information.

Excellent Customer Support: You will get reply from examkill support within 8 hours for all your questions/concerns about anything.

www.examkill.com


Question: 1 Given: public class CreditCard { private String cardID; private Integer limit; public String ownerName; public void setCardInformation(String cardID, String ownerName, Integer limit) { this.cardID = cardID; this.ownerName = ownerName; this.limit = limit; } } Which statement is true? A. The ownerName variable breaks encapsulation. B. The class is fully encapsulated. C. The cardID and limit variables break polymorphism. D. The code demonstrates polymorphism. E. The setCardInformation method breaks encapsulation.

Answer: A

http://www.examkill.com/1Z0-854.html

Adobe Apple Cisco CompTIA HP EMC IBM Microsoft Oracle Juniper

2


Question: 2 Click the Task button.

Answer:

http://www.examkill.com/1Z0-854.html

Adobe Apple Cisco CompTIA HP EMC IBM Microsoft Oracle Juniper

3


http://www.examkill.com/1Z0-854.html

Adobe Apple Cisco CompTIA HP EMC IBM Microsoft Oracle Juniper

4


Question: 3 Click the Task button.

Answer:

http://www.examkill.com/1Z0-854.html

Adobe Apple Cisco CompTIA HP EMC IBM Microsoft Oracle Juniper

5


Question: 4 Which three statements concerning the use of the java.io.Serializable interface are true? (Choose three.) A. Objects from classes that use aggregation cannot be serialized. B. The values in fields with the transient modifier will NOT survive serialization and deserialization. C. It is legal to serialize an object of a type that has a supertype that does NOT implement java.io.Serializable. D. The values in fields with the volatile modifier will NOT survive serialization and deserialization. E. An object serialized on one JVM can be successfully deserialized on a different JVM.

Answer: B,C,E

http://www.examkill.com/1Z0-854.html

Adobe Apple Cisco CompTIA HP EMC IBM Microsoft Oracle Juniper

6


Question: 5 Which two code fragments will execute the method doStuff() in a separate thread? (Choose two.) A. new Thread() { public void start() { doStuff(); } }; B. new Thread() { public void run() { doStuff(); } }; C. new Thread(new Runnable() { public void run() { doStuff(); } }).start(); D. new Thread() { public void start() { doStuff(); } }.run(); E. new Thread(new Runnable() { public void run() { doStuff(); } }).run(); F. new Thread() { public void run() { doStuff(); } }.start();

Answer: C,F Question: 6 Given: import jav a.io.*; public class Forest implements Serializable { private Tree tree = new Tree(); public static void main(String [] args) { Forest f = new Forest(); try { FileOutputStream fs = new FileOutputStream("Forest.ser"); ObjectOutputStream os = new ObjectOutputStream(fs); os.writeObject(f); os.close(); } catch (Exception ex) { ex.printStackTrace(); } }} class Tree { } What is the result? A. An exception is thrown at runtime. B. An instance of Forest is serialized. C. An instance of Forest and an instance of Tree are both serialized. D. Compilation fails.

Answer: A

http://www.examkill.com/1Z0-854.html

Adobe Apple Cisco CompTIA HP EMC IBM Microsoft Oracle Juniper

7


Question: 7 Given: interface TestA { String toString(); } public class Test { public static void main(String[] args) { System.out.println(new TestA() { public String toString() { return "test"; } }); } } What is the result? A. null B. An exception is thrown at runtime. C. Compilation fails because of an error in line 5. D. Compilation fails because of an error in line 4. E. Compilation fails because of an error in line 1. F. test

Answer: F

http://www.examkill.com/1Z0-854.html

Adobe Apple Cisco CompTIA HP EMC IBM Microsoft Oracle Juniper

8


Question: 8 Click the Task button.

Answer:

http://www.examkill.com/1Z0-854.html

Adobe Apple Cisco CompTIA HP EMC IBM Microsoft Oracle Juniper

9


Question: 9 Given: public class Boxer1{ Integer i; int x; public Boxer1(int y) { x = i+y; System.out.println(x); } public static void main(String[] args) { new Boxer1(new Integer(4)); } } What is the result? A. Compilation fails because of an error in line 5. B. A NullPointerException occurs at runtime. C. Compilation fails because of an error in line 9. D. A NumberFormatException occurs at runtime. E. The value "4" is printed at the command line. F. An IllegalStateException occurs at runtime.

http://www.examkill.com/1Z0-854.html

Adobe Apple Cisco CompTIA HP EMC IBM Microsoft Oracle Juniper

10


Answer: B Question: 10 Given: 10: public class Hello { 11: String title; 12: int value; 13: public Hello() { 14: title += " World"; 15: } 16: public Hello(int value) { 17: this.value = value; 18: title = "Hello"; 19: Hello(); 20: } 21: } and: 30: Hello c = new Hello(5); 31: System.out.println(c.title); A. The code runs with no output. B. Hello C. Hello World 5 D. Compilation fails. E. An exception is thrown at runtime. F. Hello World What is the result?

Answer: D

http://www.examkill.com/1Z0-854.html

Adobe Apple Cisco CompTIA HP EMC IBM Microsoft Oracle Juniper

11


Oracle

1Z0-854

Java Standard Edition 5 Programmer Certified Professional Upgrade

Click the link below to buy full version as Low as $25

http://www.examkill.com/1Z0-854.html

We also provide PDF Training Material for: Hot Exam 1Z0-556

1Z0-875

1Z0-562

1Z0-878

1Z0-102

1Z0-557

1Z0-561

1Z0-874

1Z0-563

1Z0-852

1Z0-543

1Z0-871

1Z0-228

1Z0-058

1Z0-532

1Z0-877

1Z0-898

1Z0-897

1Z0-895

1Z0-873

1Z0-894

1Z0-889

1Z0-884

1Z0-870

1Z0-881

1Z0-880

1Z0-879

1Z0-872

http://www.examkill.com/1Z0-854.html

www.examkill.com

Adobe Apple Cisco CompTIA HP EMC IBM Microsoft Oracle Juniper

12


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.