Oracle Java SE 7 Programmer I (1Z0-803日本語版) - 1Z0-803日本語 FREE EXAM DUMPS QUESTIONS & ANSWERS



Correct Answer: D Vote an answer
Given:

Correct Answer: A Vote an answer
Given:
public class MainMethod {
void main() {
System.out.println("one");
}
static void main(String args) {
System.out.println("two");
}
public static void main(String[] args) {
System.out.println("three");
}
void mina(Object[] args) {
System.out.println("four");
}
}
Correct Answer: A Vote an answer


Correct Answer: D Vote an answer
Given:
public class ComputeSum {
public int x;
public int y;
public int sum;
public ComputeSum (int nx, int ny) {
x = nx; y =ny;
updateSum();
}
public void setX(int nx) { x = nx; updateSum();}
public void setY(int ny) { x = ny; updateSum();}
void updateSum() { sum = x + y;}
}
Correct Answer: A,E,F Vote an answer

Boolean b1 = true;
Boolean b2 = false;
int i = 0;
while (foo) { }
Correct Answer: B Vote an answer
Correct Answer: B,C Vote an answer

public class ForTest { public static void main(String[] args) { int[] array = {1, 2, 3}; for ( foo ) { }
}
Correct Answer: A,C,E Vote an answer
Correct Answer: A,C Vote an answer
Given:

Correct Answer: C Vote an answer

Correct Answer: B Vote an answer

class Sports {
int num_players;
String name, ground_condition;
Sports(int np, String sname, String sground){ num_players = np;
name = sname;
ground_condition = sground;
}
}
class Cricket extends Sports {
int num_umpires;
int num_substitutes;
Correct Answer: B Vote an answer
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");
}
}
}
}

Shape: constructor
Square: foo
Shape: foo
Correct Answer: E Vote an answer
Given:
package p1;
public interface DoInterface { void method1(int n1); // line n1
}
package p3;
import p1.DoInterface;
public class DoClass implements DoInterface { public DoClass(int p1) { } public void method1(int p1) { } // line n2 private void method2(int p1) { } // line n3
}
public class Test {
public static void main(String[] args) {
DoInterface doi= new DoClass(100); // line n4
doi.method1(100);
doi.method2(100);
}
}
Correct Answer: C Vote an answer
0
0
0
10