Proper study guides for Improved Oracle Java SE 8 Programmer I certified begins with Oracle 1z0-808 preparation products which designed to deliver the 100% Correct 1z0-808 questions by making you pass the 1z0-808 test at your first time. Try the free 1z0-808 demo right now.


♥♥ 2017 NEW RECOMMEND ♥♥

Free VCE & PDF File for Oracle 1z0-808 Real Exam (Full Version!)

★ Pass on Your First TRY ★ 100% Money Back Guarantee ★ Realistic Practice Exam Questions

Free Instant Download NEW 1z0-808 Exam Dumps (PDF & VCE):
Available on: http://www.surepassexam.com/1z0-808-exam-dumps.html

2017 Apr 1z0-808 practice exam

Q91. Given: 

And the commands: 

Javac Test.java 

Java Test 12345 

What is the result? 

A. Number us : 12345 

B. A NullPointerException is thrown at runtime 

C. A NumberFormatException is thrown at runtime 

D. AnArrayIndexOutOfBoundException is thrown at runtime. 

Answer:


Q92. Which two are benefits of polymorphism? 

A. Faster code at runtime 

B. More efficient code at runtime 

C. More dynamic code at runtime 

D. More flexible and reusable code 

E. Code that is protected from extension by other classes 

Answer: C,D 


Q93. 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 

Answer:


Q94. Given the code fragment: 

What is the result? 

A. Jesse 25 Walter 52 

B. Compilation fails only at line n1 

C. Compilation fails only at line n2 

D. Compilation fails at both line n1 and line n2 

Answer:


Q95. Given: 

Which code fragment, when inserted at line 14, enables the code to print Mike Found? 

A. int f = ps.indexOf {new patient (“Mike”)}; 

B. int f = ps.indexOf (patient(“Mike”)); 

C. patient p = new Patient (“Mike”); int f = pas.indexOf(P) 

D. int f = ps.indexOf(p2); 

Answer:


Up to the minute 1z0-808 free question:

Q96. Given: 

Which code fragment, when inserted at line 9, enables the code to print true? 

A. String str2 = str1; 

B. String str2 = new string (str1); 

C. String str2 = sb1.toString(); 

D. String str2 = “Duke”; 

Answer:


Q97. Given the code fragment: 

Which modification enables the code to print 54321? 

A. Replace line 6 with System, out. print (--x) ; 

B. At line 7, insert x --; 

C. Replace line 6 with --x; and, at line 7, insert system, out. print (x); 

D. Replace line 12 With return (x > 0) ? false: true; 

Answer:


Q98. Given the code fragment: 

What is the result if the integer aVar is 9? 

A. 10 Hello world! 

B. 10 Hello universe! 

C. 9 Hello world! 

D. Compilation fails. 

Answer:


Q99. Which two statements correctly describe checked exception? 

A. These are exceptional conditions that a well-written application should anticipate and recover from. 

B. These are exceptional conditions that are external to the application, and that the application usually cannot anticipate or recover from. 

C. These are exceptional conditions that are internal to the application, and that the application usually cannot anticipate or recover from. 

D. Every class that is a subclass of RuntimeException and Error is categorized as checked exception. 

E. Every class that is a subclass of Exception, excluding RuntimeException and its subclasses, is categorized as checked exception. 

Answer: B,D 

Explanation: Checked exceptions: 

* (B) represent invalid conditions in areas outside the immediate control of the program (invalid user input, database problems, network outages, absent files) 

* are subclasses of Exception It's somewhat confusing, but note as well that RuntimeException (unchecked) is itself a subclass of Exception (checked). 

* a method is obliged to establish a policy for all checked exceptions thrown by its implementation (either pass the checked exception further up the stack, or handle it somehow) 

Reference: Checked versus unchecked exceptions 


Q100. Given: 

class Sports { 

int num_players; 

String name, ground_condition; 

Sports(int np, String sname, String sground){ 

num_players = np; 

name = sname; 

ground_condition = sground; 

class Cricket extends Sports { 

int num_umpires; 

int num_substitutes; 

Which code fragment can be inserted at line //insert code here to enable the code to compile? 

A. Cricket() { 

super(11, "Cricket", "Condidtion OK"); 

num_umpires =3; 

num_substitutes=2; 

B. Cricket() { 

super.ground_condition = "Condition OK"; 

super.name="Cricket"; 

super.num_players = 11; 

num_umpires =3; 

num_substitutes=2; 

C. Cricket() { 

this(3,2); 

super(11, "Cricket", "Condidtion OK"); 

Cricket(int nu, ns) { 

this.num_umpires =nu; 

this.num_substitutes=ns; 

D. Cricket() { 

this.num_umpires =3; 

this.num_substitutes=2; 

super(11, "Cricket", "Condidtion OK"); 

Answer:

Explanation: 

Incorrect: 

not C, not D: call to super must be the first statement in constructor.