AllExam Dumps

DUMPS, FREE DUMPS, VCP5 DUMPS| VMWARE DUMPS, VCP DUMPS, VCP4 DUMPS, VCAP DUMPS, VCDX DUMPS, CISCO DUMPS, CCNA, CCNA DUMPS, CCNP DUMPS, CCIE DUMPS, ITIL, EXIN DUMPS,


READ Free Dumps For Oracle- 1z0-851





Question ID 22658

Given:
11. public static void main(String[] args) {
12. Object obj = new int[] { 1, 2, 3 };
13. int[] someArray = (int[])obj;
14. for (int i : someArray) System.out.print(i + " ");
15. }
What is the result?

Option A

1 2 3

Option B

Compilation fails because of an error in line 12.

Option C

Compilation fails because of an error in line 13.

Option D

Compilation fails because of an error in line 14.

Option E

A ClassCastException is thrown at runtime.

Correct Answer A
Explanation


Question ID 22659

Given:
10. interface Data { public void load(); }
11. abstract class Info { public abstract void load(); }
Which class correctly uses the Data interface and Info class?

Option A

public class Employee extends Info implements Data {
public void load() { /*do something*/ }
}

Option B

public class Employee implements Info extends Data {
public void load() { /*do something*/ }

}

Option C

public class Employee extends Info implements Data {
public void load(){ /*do something*/ }
public void Info.load(){ /*do something*/ }
}

Option D

public class Employee implements Info extends Data {
public void Data.load(){ /*do something*/ }
public void load(){ /*do something*/ }
}

Option E

public class Employee implements Info extends Data {
public void load(){ /*do something*/ }
public void Info.load(){ /*do something*/ }
}

Option F

public class Employee extends Info implements Data{
public void Data.load() { /*do something*/ }
public void Info.load() { /*do something*/ }
}

Correct Answer A
Explanation

Send email to admin@getfreedumps for new dumps request!!!