1Z1-803日本語 無料問題集「Oracle Java SE 7 Programmer I (1Z1-803日本語版)」

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.
}

正解:E、F、H 解答を投票する

// insert code here arr[0] = new int[3]; arr[0][0] = 1; arr[0][1] = 2; arr[0][2] = 3;
arr[1] = new int[4]; arr[1][0] = 10; arr[1][1] = 20; arr[1][2] = 30; arr[1][3] = 40;

正解:A、E 解答を投票する



Boolean b1 = true;
Boolean b2 = false;
int i = 0;
while (foo) { }


class Overloading {
int x(double d) {
System.out.println("one");
return 0;
}
String x(double d) {
System.out.println("two");
return null;
}
double x(double d) {
System.out.println("three");
return 0.0;
}
public static void main(String[] args) {
new Overloading().x(4.0);
}
}





Give:
Public Class Test {
}

正解:E、F 解答を投票する



String name = "Spot";
int age = 4;
String str ="My dog " + name + " is " + age;
System.out.println(str);
And
StringBuilder sb = new StringBuilder();

正解:A、D 解答を投票する

正解:C、D、E 解答を投票する

public class Test {
public static void main(String[] args) {
int arr[] = new int[4];
arr[0] = 1;
arr[1] = 2;
arr[2] = 4;
arr[3] = 5;
int sum = 0;
try {
for (int pos = 0; pos <= 4; pos++) {
sum = sum + arr[pos];
}
} catch (Exception e) {
System.out.println("Invalid index");
}
System.out.println(sum); } }


int a = 0; a++;
System.out.printIn(a++);
System.out.printIn(a);






public class Painting {
private String type;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public static void main(String[] args) {
Painting obj1 = new Painting();
Painting obj2 = new Painting();
obj1.setType(null);
obj2.setType("Fresco");
System.out.print(obj1.getType() + " : " + obj2.getType());
}
}

正解:A、C 解答を投票する

float x = 22.00f % 3.00f;
int y = 22 % 3;
System.out.print(x + ", "+ y);





正解:C、D 解答を投票する

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡