Downloadable of java se 8 programmer i 1z0 808 dumps rapidshare materials and class for Oracle certification for customers, Real Success Guaranteed with Updated 1z0 808 dumps pdf pdf dumps vce Materials. 100% PASS Java SE 8 Programmer I exam Today!

Q1. Consider following method 

Which statement is true? 

A. This method is invalid. 

B. This method can be used only in an interface. 

C. This method can return anything. 

D. This method can be used only in an interface or an abstract class. 

E. None of above. 

Answer:

Explanation: 

Given method is declared as default method so we can use it only inside an interface. 

Hence option B is correct and option D is incorrect. 

Option A is incorrect as it is valid method. Option C is incorrect as return type is void, which 

means we can't return anything. 


Q2. Given the code fragment: 

What is the result? 

A. Execution terminates in the first catch statement, and caught a RuntimeException is printed to the console. 

B. Execution terminates In the second catch statement, and caught an Exception is printed to the console. 

C. A runtime error is thrown in the thread "main". 

D. Execution completes normally, and Ready to us. is printed to the console. 

E. The code fails to compile because a throws keyword is required. 

Answer:


Q3. Given: 

What is the result? 

A. 1 

B. 1 

C. 2 

D. Compilation fails 

E. The loop executes infinite times 

Answer:


Q4. Given the following code for a Planet object: 

What is the output? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

E. Option E 

Answer:


Q5. Given: 

What is the result? 

A. True false 

B. True null 

C. Compilation fails 

D. A NullPointerException is thrown at runtime 

Answer:


Q6. Given the code fragment: int[] array = {I, 2, 3, 4, 5}; And given the requirements: 

Process all the elements of the array in the order of entry. 

Process all the elements of the array in the reverse order of entry. 

Process alternating elements of the array in the order of entry. 

Which two statements are true? 

A. Requirements 1, 2, and 3 can be implemented by using the enhanced for loop. 

B. Requirements 1, 2, and 3 can be implemented by using the standard for loop. 

C. Requirements 2 and 3 CANNOT be implemented by using the standard for loop. 

D. Requirement 1 can be implemented by using the enhanced for loop. 

E. Requirement 3 CANNOT be implemented by using either the enhanced for loop or the standard for loop. 

Answer: D,E 


Q7. Given the content of three files: 

Which statement is true? Which statement is true? 

A. Only the A.Java file compiles successfully. 

B. Only the B.java file compiles successfully. 

C. Only the C.java file compiles successfully. 

D. The A.Java and B.java files compile successfully. 

E. The B.java and C.java files compile successfully. 

F. The A.Java and C.java files compile successfully. 

Answer:

Explanation: In class B.Java doStuff() has access modifier with variable name which is not allowed. C.Java class name is different than file name. Only private classes can have different names than file names 


Q8. Given the code fragment: 

Which two modifications, made independently, enable the code to compile? 

A. Make the method at line n1 public. 

B. Make the method at line n2 public. 

C. Make the method at line n3 public. 

D. Make the method at line n3 protected. 

E. Make the method at line n4 public. 

Answer: C,D 


Q9. Given the code fragment: 

What is the result? 

A. A B C 

B. A B C D E 

C. A B D E 

D. Compilation fails. 

Answer:


Q10. Given the following class: 

And given the following main method, located in another class: 

Which three lines, when inserted independently at line n1, cause the program to print a o balance? 

A. this.amount = 0; 

B. amount = 0; 

C. acct (0) ; 

D. acct.amount = 0; 

E. acct. getAmount () = 0; 

F. acct.changeAmount(0); 

G. acct.changeAmount(-acct.amount); 

H. acct.changeAmount(-acct.getAmount()); 

Answer: D,G,H