1z1-808 試験問題を無料オンラインアクセス
| 試験コード: | 1z1-808 |
| 試験名称: | Java SE 8 Programmer I |
| 認定資格: | Oracle |
| 無料問題数: | 398 |
| 更新日: | 2026-06-02 |
Given:
1. public class SampleClass {
2. public static void main (String[] args) {
3. AnotherSampleClass asc = new AnotherSampleClass();
4. SampleClass sc = new SampleClass();
5. // insert code here
6. }
7. }
8. class AnotherSampleClass extends SampleClass {
9. }
Which statement, when inserted into line 5, enables the code to compile?
Given the code fragment?
public class Test {
public static void main(String[] args) {
Test t = new Test();
int[] arr = new int[10];
arr = t.subArray(arr,0,2);
}
// insert code here
}
Which method can be inserted at line // insert code here to enable the code to compile?
Given:
package pkg1;
class Bb { }
public class Ee {
private Ee() { }
}
package pkg2;
final class Ww;
package pkg3;
public abstract class Dd { void m() { } }
And,
1. package pkg4;
2. import pkg1.*;
3. import pkg2.*;
4. import pkg3.*;
5. // insert a class definition here
Which two class definitions, when inserted independently at line 5, enable the code to compile?


