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 3807

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

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

Option B

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

Option C

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

Option D

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

Option E

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

Option F

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

Correct Answer A
Explanation


Question ID 3808

Given:
11.    public class Rainbow {
12.    public enum MyColor {
13.    RED(0xff0000), GREEN(0x00ff00), BLUE(0x0000ff);
14.    private final int rgb;
15.    MyColor(int rgb) { this.rgb = rgb; }
16.    public int getRGB() { return rgb; }
17.    };
18.    public static void main(String[] args) {
19.    // insert code here
20.    }
21.    }
Which code fragment, inserted at line 19, allows the Rainbow class to compile?
 
 

Option A

A.    MyColor skyColor = BLUE;
 

Option B

B.    MyColor treeColor = MyColor.GREEN;
 

Option C

C.    if(RED.getRGB() < BLUE.getRGB()) { }
 

Option D

D.    Compilation fails due to other error(s) in the code.
 

Correct Answer B
Explanation

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