What is singleton class?

Answer Posted / harinath reddy.n

Instead of creating a separate object for every requirement we can create a single object and we can reuse the same object for every requirement

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?

569


Which is better ascii or unicode?

560


What are the 4 types of research methods?

507


What is a singleton puppy?

524


What is string :: npos?

574






Explain the difference between jdk, jre, and jvm?

586


Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx

1601


How many types of flags are there?

519


What is the difference between interface & abstract class?

556


What are different type of exceptions in java?

544


What is final access modifier in java?

586


How does system arraycopy work in java?

574


How arrays are stored in memory in java?

507


Is call by reference possible in java?

530


Can we use different return types for methods when overridden?

554