How can we design/implement singleton object?

Answer Posted / todd d. roling

public enum Singleton {
INSTANCE;
}

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the creational design pattern?

631


Why do we need singleton pattern?

586


Suppose we have file(ps), dont know how many records are there. Move half of the records to 2 files. How can we do?

584


Are you using singleton in your code?

591


when performing a functional test on a phone calculator,if pressing on a button does not function what do i do next

6829






Where should we use singleton design pattern?

544


What non-visual coding tools are available for web design?

2121


Which design pattern is mvc?

626


Can you explain singleton pattern?

572


What is the difference between architecture and design?

583


Describe the builder design pattern

665


What is the difference between adapter and facade?

631


Hi, I have 9backlogs in btech and i am 2008 passed out,am working with an MNC from past 3 years.now, am willing to do MS, will it be any problem for me?

2695


Is mvc a software design pattern?

671


What is synchronizer token pattern?

607