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

what are the disadvantages of indexes in oracle?

1076


what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent

921


what is mena by object block any what is the use of that

1006


Say you want to store the information about a number of pets in an array. Typical information that you could store for each pet (where relevant) would be • Breed of animal • Animal's name • Its birth date • Its sex • Whether it has been sterilised or not • When it is due for its next inoculation • When it last had its wings clipped For each type of pet (eg. dog, cat or bird) you would typically define a class to hold the relevant data. Note: You do not need to implement these classes. Just answer the following questions. 3.1.1 What would be the advantage of creating a superclass (eg. Pet) and declaring an array of Pet objects over simply using an array of Objects, storing each of the instances of the different pet classes (eg. Dog, Cat or Bird) in it? 3.1.2 Would you define Pet as a class or as an interface? Why? (2) (2)

614


How to solve the problem of generating the unique hash keys with hash function?

734






how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)

835


How do you download stubs from Remote place?

611


why we use merge option in hybernate pls give a ex snippet

779


placement papaers of spring computing technology

263


Tell me the Importent classes in net package?

896


Where will it be used?

641


what is difference betweem home interface and remote interface?

1381


Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain

738


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

843


What collections you have worked on? Internal working of Hashmap?

1059