java se 7 programmer i 1z0 803 (31 to 40)

Ucertify offers free demo for 1z0 803 pdf exam. “Java SE 7 Programmer I”, also known as java se 7 programmer i 1z0 803 exam, is a Oracle Certification. This set of posts, Passing the Oracle java se 7 programmer i 1z0 803 exam, will help you answer those questions. The 1z0 803 practice test Questions & Answers covers all the knowledge points of the real exam. 100% real Oracle 1z0 803 practice test exams and revised by experts!


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

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

Free Instant Download NEW 1Z0-803 Exam Dumps (PDF & VCE):
Available on:

Q31. Which three statements are benefits of encapsulation? 

A. Allows a class implementation to change without changing t he clients 

B. Protects confidential data from leaking out of the objects 

C. Prevents code from causing exceptions 

D. Enables the class implementation to protect its invariants 

E. Permits classes to be combined into the same package 

F. Enables multiple instances of the same class to be created safely 

Answer: ABD 

Q32. ArrayList<Integer> list = new ArrayList<>(1); 

2. list.add(1001); 

3. list.add(1002); 

4. System.out.println(list.get(list.size())); 

What is the result? 

A. Compilation fails due to an error on line 1. 

B. An exception is thrown at run time due to error on line 3 

C. An exception is thrown at run time due to error on line 4 

D. 1002 


Q33. Given: 

What is the result? 

A. box 

B. nbo 

C. bo 

D. nb 

E. An exception is thrown at runtime 


Q34. Given: 

What is the result? 

A. The program prints nothing 

B. d 

C. A S StringIndexOutOfBoundsException is thrown at runtime. 

D. AnArrayIndexOutOfBoundsException is thrown at runtime. 

E. A NullPointerException is thrown at runtime. 


Q35. What is the result? 

A. Initialized 


B. Initialized 



C. Compilation fails 

D. An exception is thrown at runtime 


Q36. View the exhibit: 

public class Student { 

public String name = ""; 

public int age = 0; 

public String major = "Undeclared"; 

public boolean fulltime = true;  

public void display() { 

System.out.println("Name: " + name + " Major: " + major); } 

public boolean isFullTime() { 

return fulltime; 


Public class TestStudent { 

public static void main(String[] args) { 

Student bob = new Student (); = "Bob"; 

bob.age = 18; 

bob.year = 1982; 

What is the result? 

A. year is set to 1982. 

B. bob.year is set to 1982 

C. A runtime error is generated. 

D. A compile time error is generated. 


Q37. Given: 

A. X XX 

B. X Y X 

C. Y Y X 

D. Y YY 


Q38. Why will the code not compile? 

A. A static field cannot be private. 

B. The getLetter method has no body. 

C. There is no setLetter method. 

D. The letter field is uninitialized. 

E. It contains a method named Main instead of ma 


Q39. Given: 

What is the result? 

A. true true 

B. true false 

C. false true 

D. false false 

E. Compilation fails 


Q40. Which code fragments, inserted independently, enable the code compile? 

A. t.fvar = 200; 

B. cvar = 400; 

C. fvar = 200; cvar = 400; 

D. this.fvar = 200; this.cvar = 400; 

E. t.fvar = 200; Test2.cvar = 400; 

F. this.fvar = 200; Test2.cvar = 400;