Oracle Java SE 7 Programmer I - 1Z1-803 Exam Practice Test

Given the code fragment: What is the result?

Correct Answer: A Vote an answer
Which declaration initializes a boolean variable?

Correct Answer: D Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
Which three are valid types for switch?

Correct Answer: C,D,F Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
Given the code fragment:

What values of x, y, z will produce the following result?
1 2 3 4
1 2 3 4
1 2 3 4
1 2 3 4

Correct Answer: D Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
Given:
public class Test1 {
static void doubling (Integer ref, int pv) {
ref =20;
pv = 20;
}
public static void main(String[] args) {
Integer iObj = new Integer(10);
int iVar = 10;
doubling(iObj++, iVar++);
System.out.println(iObj+ ", "+iVar);
What is the result?

Correct Answer: A Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
Given: What should statement1, statement2, and statement3, be respectively, in order to produce the result?

Shape: constructor Square: foo Shape: foo

Correct Answer: C Vote an answer
Given:

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

Correct Answer: A Vote an answer
A method doSomething () that has no exception handling code is modified to trail a method that throws a checked exception. Which two modifications, made independently, will allow the program to compile?

Correct Answer: B,D Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
Given: Given:
public class SuperTest {
public static void main(String[] args) { statement1 statement2 statement3
}
}
class Shape {
public Shape() {
System.out.println("Shape: constructor");
}
public void foo() {
System.out.println("Shape: foo");
}
}
class Square extends Shape {
public Square() {
super();
}
public Square(String label) {
System.out.println("Square: constructor");
}
public void foo() {
super.foo();
}
public void foo(String label) {
System.out.println("Square: foo");
}
}
}
}
What should statement1, statement2, and statement3, be respectively, in order to produce the result?
Shape: constructor
Square: foo
Shape: foo

Correct Answer: B Vote an answer
Given the following code fragment:

What is the result if the integer value is 33?

Correct Answer: A Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
Given:

Correct Answer: D Vote an answer
Given the code fragment:
StringBuilder sb = new StringBuilder ( ) ; Sb.append ("world");
Which code fragment prints Hello World?

Correct Answer: C Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).

Contact Us

If you have any question please leave me your email address, we will reply and send email to you in 12 hours.

Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday

Support: Contact now 

日本語 Deutsch 繁体中文 한국어