최신 1Z1-803 무료덤프 - Oracle Java SE 7 Programmer I
Given: What is the result?
정답: C
int i, j=0; i = (3* 2 +4 +5 ) ; j = (3 * ((2+4) + 5)); System.out.println("i:"+ i + "\nj":+j);
What is the result?
What is the result?
정답: C
Given the code fragment:
for (int ii = 0; ii < 3;ii++) {
int count = 0;
for (int jj = 3; jj > 0; jj--) {
if (ii == jj) {
++count;
break;
} }
System.out.print(count);
continue;
}
What is the result?
for (int ii = 0; ii < 3;ii++) {
int count = 0;
for (int jj = 3; jj > 0; jj--) {
if (ii == jj) {
++count;
break;
} }
System.out.print(count);
continue;
}
What is the result?
정답: D
Given: What should statement1, statement2, and statement3, be respectively, in order to produce the result?
Shape: constructor Square: foo Shape: foo
Shape: constructor Square: foo Shape: foo
정답: B
Given:
What is the result?
What is the result?
정답: D
Which is a valid abstract class?
정답: D
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?
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?
정답: D
설명: (DumpTOP 회원만 볼 수 있음)
Given:
And the commands: Javac Test.java Java Test 12345
What is the result?
And the commands: Javac Test.java Java Test 12345
What is the result?
정답: B
1.class StaticMethods {
2.static void one() {
3.two();
4.StaticMethods.two();
5.three();
6.StaticMethods.four();
7.}
8.static void two() { }
9.void three() {
10.
one();
11.
StaticMethods.two();
12.
four();
13.
StaticMethods.four();
14.
}
15.
void four() { }
16.
}
Which three lines are illegal?
2.static void one() {
3.two();
4.StaticMethods.two();
5.three();
6.StaticMethods.four();
7.}
8.static void two() { }
9.void three() {
10.
one();
11.
StaticMethods.two();
12.
four();
13.
StaticMethods.four();
14.
}
15.
void four() { }
16.
}
Which three lines are illegal?
정답: C,E,F
Given: What is result?
정답: D
Which statement is true about the default constructor of a top-level class?
정답: B
설명: (DumpTOP 회원만 볼 수 있음)
Given:
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;
Which code fragment can be inserted at line //insert code here to enable the code to compile?
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;
Which code fragment can be inserted at line //insert code here to enable the code to compile?
정답: B
설명: (DumpTOP 회원만 볼 수 있음)
Given the code fragment:
What is the result?
What is the result?
정답: B