1z0-804: Java SE 7 Programmer II System.out.println Practice Questions
The free 1z0-804: Java SE 7 Programmer II questions that deal with system.out.println, with answers and explanations. The full bank and the timed practice test cover every topic the exam asks about.
Question #1
What is the output of the following code: System.out.println("Hello World".substring(0, 5));
Correct answer: D
Explanation
The substring method extracts a portion of the string based on the provided indices.
Question #10
What will be the output of the following code if called with foo(2)? void foo(int n) { System.out.println(n + "+"); foo(n - 1); }
Correct answer: A
Explanation
The method prints the value of n before decrementing and does not handle base case well.
Continue with 1z0-804: Java SE 7 Programmer II
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-804: Java SE 7 Programmer II, 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.
