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-804





Question ID 3484

Which two properly implement a Singleton pattern?
 

Option A

A.    class Singleton {
private static Singleton instance;
private Singleton () {}
public static synchronized Singleton getInstance() {
if (instance == null) {
instance = new Singleton ();
}
return instance;
}
}
 

Option B

B.    class Singleton {
private static Singleton instance = new Singleton();
protected Singleton () {}
public static Singleton getInstance () {
return instance;
}
}
 

Option C

C.    class Singleton {
Singleton () {}
private static class SingletonHolder {
private static final Singleton INSTANCE = new Singleton ();
}
public static Singleton getInstance () {
return SingletonHolder.INSTANCE;
}
}
 

Option D

D.    enum Singleton { INSTANCE;
}
 

Correct Answer A,D
Explanation


Question ID 3485

 

Which two statements concerning the OO concepts "IS-A" and "HAS-A" are true?
 

Option A

A.    Flimmer is-a Glommer.
 

Option B

B.    Flommer has-a String.
 

Option C

C.    Tagget has-a Glommer.
 

Option D

D.    Flimmer is-a ArrayList.
 

Option E

E.    Tagget has-a doStuff()
 

Option F

F.    Tagget is-a Glommer.
 

Correct Answer B,F
Explanation

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