IT認証試験問題集
毎月、ITshikenは1500人以上の受験者が試験準備を助けて、試験に合格するために受験者にご協力します
 ホームページ / 1Z0-803 問題集  / 1Z0-803 問題練習

Oracle 1Z0-803 問題練習

Java SE 7 Programmer I 試験

最新更新時間: 2019/12/05,合計206問。

年末大感謝:1Z0-803 最新真題を買う時、日本語版と英語版両方を同時に獲得できます。

実際の問題集を練習し、試験のポイントを了解し、テストに申し込むするかどうかを決めることができます。

さらに試験準備時間の35%を節約するには、1Z0-803 問題集を使用してください。

 / 14

Question No : 1
Given:
public class DoBreak1 { public static void main(String[] args) { String[] table = {"aa", "bb", "cc", "dd"}; for (String ss: table) { if ( "bb".equals(ss)) { continue; }
System.out.println(ss); if ( "cc".equals(ss)) { break; } } } }
What is the result?

正解:

Question No : 2
Given the code fragment:
int [][] array2d = new int[2][3]; System.out.println("Loading the data."); for ( int x = 0; x < array2d.length; x++) { for ( int y = 0; y < array2d[0].length; y++) { System.out.println(" x = " + x); System.out.println(" y = " + y); // insert load statement here. } } System.out.println("Modify the data. "); for ( int x = 0; x < array2d.length; x++) { for ( int y = 0; y < array2d[0].length; y++) {
System.out.println(" x = " + x); System.out.println(" y = " + y); // insert modify statement here. } } Which pair of load and modify statement should be inserted in the code? The load statement should set the array's x row and y column value to the sum of x and y
The modify statement should modify the array's x row and y column value by multiplying it by 2

正解:

Question No : 3
Given:
public class MyFor { public static void main(String[] args) { for (int ii = 0; ii < 4; ii++) { System.out.println("ii = "+ ii); ii = ii +1; }
} }
What is the result?

正解:

Question No : 4
public class Two { public static void main(String[] args) { try { doStuff(); system.out.println("1"); }
catch { system.out.println("2"); }} public static void do Stuff() { if (Math.random() > 0.5) throw new RunTimeException(); doMoreStuff(); System.out.println("3 "); } public static void doMoreStuff() { System.out.println("4"); } } Which two are possible outputs?

正解:

Question No : 5
View the Exhibit.
public class Hat { public int ID =0; public String name = "hat"; public String size = "One Size Fit All";
public String color=""; public String getName() { return name; } public void setName(String name) { this.name = name; } } Given public class TestHat { public static void main(String[] args) { Hat blackCowboyHat = new Hat(); } }
Which statement sets the name of the Hat instance?

正解:

Question No : 6
Given the code fragment:
ArrayList<Integer> list = new ArrayList<>(1);
list.add(1001);
list.add(1002);
System.out.println(list.get(list.size()));
What is the result?

正解:

Question No : 7
The catch clause argument is always of type___________.

正解:

Question No : 8
Given:
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) }
}
What is the result?

正解:

Question No : 9
Which two statements are true?

正解:

Question No : 10
Given:
class X { static void m(int i) { } public static void main (String [] args) {
int j = 12;
m (j);
System.out.println(j);
}
}
What is the result?

正解:

Question No : 11
Given:
public abstract class Wow { private int wow; public wow (int wow) { this.wow = wow; } public void wow () {} private void wowza () {} } What is true about the class Wow?

正解:

Question No : 12
Which two will compile, and can be run successfully using the command:
Java fred hello walls

正解:

Question No : 13
Given:
public class SampleClass {
public static void main(String[] args) { SampleClass sc, scA, scB; sc = new SampleClass(); scA = new SampleClassA();
scB = new SampleClassB(); System.out.println("Hash is : " + sc.getHash() + ", " + scA.getHash() + ", " + scB.getHash()); } public int getHash() { return 111111; }
}
class SampleClassA extends SampleClass { public long getHash() { return 44444444; }
}
class SampleClassB extends SampleClass { public long getHash() { return 999999999; } }
What is the result?
A. Compilation fails
B. An exception is thrown at runtime
C. There is no result because this is not correct way to determine the hash code
D. Hash is: 111111, 44444444, 999999999

正解: A

Question No : 14
Given the code fragment:
public static void main(String[] args) { String [] table = {"aa", "bb", "cc"}; int ii = 0; for (String ss:table) { while (ii < table.length) { System.out.println (ii); ii++; break;
} } } How many times is 2 printed?

正解:

Question No : 15
Given:
What is the result?

正解:

 / 14