Free 1z0-803: Java SE 7 Programmer I Exam Questions and Answers
Java SE 7 Programmer I is part of Oracle Certification from Oracle University. Oracle exam codes begin 1Z0-, and modern ones end in the release year, so 1Z0-1085-26 is the 2026 release of OCI Foundations Associate. The least-known rule is the update path: a Delta exam swaps the prefix to 1D0- and appends -D while keeping the same family number, so 1Z0-1058-26 renews through 1D0-1058-26-D.
Looking for 1z0-803: Java SE 7 Programmer I exam dumps or ExamTopics questions? These practice questions cover the same ground with verified answers and explanations, a downloadable PDF and a full practice test, kept current as Oracle updates the exam.
Last updated: October 28, 2026
- Provider
- Oracle
- Questions in our bank
- 1000+
- Free to read
- First 10, with answers
- Official page
- Official Exam website
- Our test mode duration & pass mark
- 130 mins · 70%
- Verified answers
- Reviewed weekly
Recommended: Switch to Test Mode to start a practice test that simulates the real exam experience.
Question #1
Given: import java.util.*; public class Test { public static void main(String[] args) { List<String> list = new ArrayList<>(); list.add("A"); list.add("B"); list.add("C"); list.add("B"); list.remove("B"); list.add(1, "D"); list.set(3, "E"); // line n1 } } Which two statements are true when the code reaches line n1? (Choose two.)
Select 2 answers.
Correct answer: A, B
Explanation
remove("B") deletes only the first match, giving [A, C, B]. add(1, "D") inserts and shifts the rest, giving [A, D, C, B], and set(3, "E") replaces the last element, giving [A, D, C, E]. So the size is 4 and "C" is at index 2. Both "B" values are gone, because one was removed and the other was replaced.
Continue with 1z0-803: Java SE 7 Programmer I
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-803: Java SE 7 Programmer I, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #2
Given: // line n1 public class Clock { public static void main(String[] args) { List<Date> dates = new ArrayList<>(); dates.add(new Date()); System.out.println(dates.size()); } } Which code fragment, when inserted at line n1, enables the code to print 1?
Correct answer: D
Explanation
List, ArrayList and Date are all in java.util, so the single wildcard import makes all three visible. The pairs of single-type imports each leave one of the three names unresolved. The java.sql.Date import resolves the name, but that class has no no-argument constructor, so new Date() does not compile.
Continue with 1z0-803: Java SE 7 Programmer I
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-803: Java SE 7 Programmer I, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #3
Given: public class Test { public static void main(String[] args) { int count = 0; outer: for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { if (j == 2) continue outer; if (i == 3) break outer; count++; } } System.out.println(count); } } What is the result?
Correct answer: C
Explanation
For i = 0, 1 and 2 the inner loop increments count at j = 0 and j = 1, then continue outer at j = 2 moves to the next i. That gives 2 + 2 + 2 = 6. At i = 3 and j = 0 the j == 2 test is false, so break outer ends both loops before count++ runs.
Continue with 1z0-803: Java SE 7 Programmer I
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-803: Java SE 7 Programmer I, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #4
Given the declarations in a method: double d = 4.5; StringBuilder sb = new StringBuilder("ab"); Which statement is true?
Correct answer: B
Explanation
sb is a reference variable and can hold null, which means it refers to no object. d is a primitive and always holds a double value, so null is not allowed. Primitives have no methods, and local variables of either kind receive no default value.
Continue with 1z0-803: Java SE 7 Programmer I
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-803: Java SE 7 Programmer I, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #5
Given: package bank; public class Account { private double balance; int branchCode; protected String owner; public String label; public void deposit(double amt) { balance += amt; } } package audit; import bank.Account; public class Auditor { public void check(Account a) { // line n1 } } Auditor does not extend Account. Which two statements, when inserted at line n1, compile successfully? (Choose two.)
Select 2 answers.
Correct answer: A, E
Explanation
Only public members are visible to a class in another package that is not a subclass. label and deposit() are public. balance is private, branchCode has package-private access, and owner is protected, which allows access from the package or from subclasses but not from an unrelated class in another package.
Continue with 1z0-803: Java SE 7 Programmer I
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-803: Java SE 7 Programmer I, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #6
Given: public class Printer { static void show(int n) { System.out.print("int "); } static void show(long n) { System.out.print("long "); } static void show(Integer n) { System.out.print("Integer "); } static void show(Object o) { System.out.print("Object "); } public static void main(String[] args) { byte b = 5; show(b); show('a'); show(2.5f); show(Integer.valueOf(9)); } } What is the result?
Correct answer: D
Explanation
The compiler first tries widening without boxing and picks the most specific method. A byte and a char both widen to int, which is more specific than long. A float cannot widen to int or long, so boxing to Float is used and the Object overload is chosen. An Integer argument matches show(Integer) exactly.
Continue with 1z0-803: Java SE 7 Programmer I
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-803: Java SE 7 Programmer I, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #7
Given: public class Tracker { public static void main(String[] args) { System.out.print("A"); main(5); System.out.print("C"); } public static void main(int n) { System.out.print("B" + n); } } The program is started with the command: java Tracker What is the result?
Correct answer: A
Explanation
The overloaded main(int) is an ordinary static method, so it compiles and can be called from main(String[]), which is the entry point the JVM uses. Execution prints A, then B5 from the call, then returns and prints C. The trap is thinking that two methods named main conflict or that the second call replaces the rest of the first method.
Continue with 1z0-803: Java SE 7 Programmer I
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-803: Java SE 7 Programmer I, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #8
Given the code fragment: int[] nums = {1, 2, 3}; for (int n : nums) { n = n * 2; } System.out.println(nums[0] + nums[1] + nums[2]); What is the result?
Correct answer: C
Explanation
In an enhanced for loop the variable n is a copy of each element, so assigning to n does not change the array. The array still holds 1, 2 and 3, and their sum is 6. The value 12 would result only if the array elements themselves were assigned, for example with nums[i] = nums[i] * 2 in a basic for loop.
Continue with 1z0-803: Java SE 7 Programmer I
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-803: Java SE 7 Programmer I, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #9
Given: public class Flow { static int run() { int x = 1; try { x++; Object o = "text"; Integer i = (Integer) o; x++; } catch (ClassCastException e) { x += 10; return x; } finally { x += 100; } return x; } public static void main(String[] args) { System.out.println(run()); } } What is the result?
Correct answer: A
Explanation
The cast throws ClassCastException after x becomes 2, so the second x++ is skipped. The catch block raises x to 12 and the return expression is evaluated, saving 12 as the return value. The finally block then changes x to 112, but that does not alter the value already saved for return.
Continue with 1z0-803: Java SE 7 Programmer I
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-803: Java SE 7 Programmer I, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #10
Given: class Base { String name = "base"; String get() { return name; } } class Derived extends Base { String name = "derived"; String get() { return name; } } public class Test { public static void main(String[] args) { Base b = new Derived(); System.out.println(b.name + " " + b.get()); } } What is the result?
Correct answer: A
Explanation
Field access is resolved using the reference type, so b.name reads the field declared in Base. Instance method calls are resolved using the actual object type, so b.get() runs the Derived version, which returns Derived's own field. The output is base derived.
Continue with 1z0-803: Java SE 7 Programmer I
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-803: Java SE 7 Programmer I, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Discussion
Explain your reasoning, not just the letterOther Oracle certifications
- 1z0-062: Oracle Database 12c Installation and Administration (opens in a new tab)
- 1z0-067: Upgrade Oracle9i10g11g OCA OR OCP to Oracle Database 12c OCP (opens in a new tab)
- 1z0-1105-22: Oracle Cloud Data Management 2022 Foundations Associate (opens in a new tab)
- 1z0-071: Oracle Datbase 12c SQL (opens in a new tab)
- 1z0-063: Oracle Database 12c Advanced Administration (opens in a new tab)
- 1z0-060: Upgrade to Oracle Database 12c (opens in a new tab)
- 1z0-821: Oracle Solaris 11 System Administration (opens in a new tab)
- 1z0-900: Java EE 7 Application Developer (opens in a new tab)
- 1z0-1094-23: Oracle Cloud Database 2023 Migration and Integration Professional (opens in a new tab)
- 1z0-632: PeopleSoft PeopleTools 8.5x Implementation Essentials (opens in a new tab)
- 1z0-082: Oracle Database Administration I (opens in a new tab)
- 1z0-1072-23: Oracle Cloud Infrastructure 2023 Architect Associate (opens in a new tab)
Reviews
Write a review★★★★★
Exam Practice is worth every penny. The mock exams are realistic, and the feedback helped me focus on key areas.
Amit SharmaVerified buyer
★★★★★
I highly recommend Exam Practice. The feedback after each test helped me improve significantly, and I passed my exams easily.
Oscar NyströmVerified buyer
★★★★★
This platform is a lifesaver. The practice questions and explanations are so detailed. It’s the best study tool I’ve ever used.
Hannah SmithVerified buyer
FAQ
Learn More: https://academy.oracle.com/en/resources-oracle-certifications.html
- Q1: What is the 1z0-803: Java SE 7 Programmer I exam?
- A: 1z0-803: Java SE 7 Programmer I is a Oracle certification exam. Judging by the questions in our bank, it concentrates on java, class, declare, exception and variable.
- Q2: What topics does the 1z0-803: Java SE 7 Programmer I exam cover?
- A: Questions in our 1z0-803: Java SE 7 Programmer I bank cluster around java, class, declare, exception, variable, valid, happen and correctly. Working through the full set is the quickest way to find which of these you are weakest on.
- Q3: How should I prepare for 1z0-803: Java SE 7 Programmer I?
- A: Work through the 1z0-803: Java SE 7 Programmer I practice questions here, checking your answer on each one, then sit the practice test to rehearse the exam under timed conditions before the real thing.
- Q4: Are these real 1z0-803: Java SE 7 Programmer I exam questions?
- A: They are drawn from officially released past questions and from community members who have sat 1z0-803: Java SE 7 Programmer I. Answers are verified and updated weekly.
- Q5: Where do I register for the 1z0-803: Java SE 7 Programmer I exam?
- A: Register through Oracle directly at https://academy.oracle.com/en/resources-oracle-certifications.html. Exampractice is not affiliated with Oracle and does not administer the exam.
- Q6: Is there a free 1z0-803: Java SE 7 Programmer I sample?
- A: Yes. Every 1z0-803: Java SE 7 Programmer I page shows a free sample of real questions. Upgrading opens the full bank and the practice test.
- Q7: What are Oracle Certification Exams?
- A: Oracle Certification Exams validate your expertise in using and managing Oracle’s vast array of software and hardware solutions, including databases, cloud infrastructure, enterprise applications, and more. These certifications demonstrate your proficiency in deploying, configuring, and optimizing Oracle technologies to meet business needs.
- Q8: Why should I pursue Oracle Certification?
- A: Oracle Certification enhances your professional credibility, showcasing your skills and knowledge in Oracle technologies. This can lead to better job opportunities, higher salaries, and career advancement in IT, database management, cloud computing, and enterprise application roles.
- Q9: What are the benefits of Oracle Certification?
- A: Benefits include recognition as a certified Oracle professional, improved job performance, access to exclusive resources, continuing education opportunities, and staying current with the latest Oracle technologies and best practices.
- Q10: Who should take Oracle Certification Exams?
- A: IT professionals, database administrators, developers, system administrators, and anyone involved in managing and implementing Oracle solutions should consider these certifications to validate their expertise and advance their careers.
- Q11: What types of Oracle Certification Exams are available?
- A: Oracle offers various certification paths, including:
- Q12: How do I prepare for Oracle Certification Exams?
- A: Preparation can include official Oracle University training courses, study guides, practice exams, online tutorials, and hands-on experience with Oracle products and solutions.
- Q13: Where can I take Oracle Certification Exams?
- A: Oracle Certification Exams can be taken online with remote proctoring or at authorized Pearson VUE testing centers worldwide, providing flexibility to fit your schedule and location.
- Q14: How do Oracle Certifications impact my career?
- A: Oracle Certifications significantly boost your career by demonstrating your expertise to employers, making you a more competitive candidate for advanced roles and promotions in IT, database management, cloud computing, and enterprise applications.
- Q15: Are there any prerequisites for Oracle Certification Exams?
- A: Some exams may have prerequisites, such as foundational knowledge or prior experience with Oracle products. Check the specific requirements for each certification path on the Oracle certification website.
- Q16: How often do I need to recertify for Oracle Certifications?
- A: Recertification requirements vary by certification. Some Oracle certifications do not require recertification, while others, especially those related to cloud technologies, may require periodic updates to ensure professionals stay current with the latest advancements.



