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 3903

Which two code fragments correctly create and initialize a static array of int elements? (Choose two.)

 

Option A

A.    static final int[] a = { 100,200 };
 

Option B

B.    static final int[] a;
static { a=new int[2]; a[0]=100; a[1]=200; }
 

Option C

C.    static final int[] a = new int[2]{ 100,200 };
 

Option D

D.    static final int[] a;
static void init() { a = new int[3]; a[0]=100; a[1]=200; }

Correct Answer A,B
Explanation


Question ID 3904

Given:
11.    public abstract class Shape {
12.    private int x;
13.    private int y;
14.    public abstract void draw();
15.    public void setAnchor(int x, int y) {
16.    this.x = x;
17.    this.y = y;
18.    }
19.    }
Which two classes use the Shape class correctly? (Choose two.)
 

Option A

A.    public class Circle implements Shape { private int radius;
}
 

Option B

B.    public abstract class Circle extends Shape { private int radius;
}
 

Option C

C.    public class Circle extends Shape {
private int radius; public void draw(); }
 

Option D

D.    public abstract class Circle implements Shape {
private int radius; public void draw(); }
 

Option E

E.    public class Circle extends Shape { private int radius;
public void draw() {/* code here */}
 

Option F

F.    public abstract class Circle implements Shape { private int radius;
public void draw() { /* code here */ }
 

Correct Answer B,E
Explanation

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