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

EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.

7584


2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?

1172


what is ststic with example

918


Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.

873


What is files manifesting?

1012






what is server side caching?

885


Tell me the Importent classes in net package?

928


Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example

1355


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

868


Realized?

904


1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?

2422


what are the disadvantages of indexes in oracle?

1114


how to handle exceptions in ejb?

1198


Difference between error and exception

3465


how to prepare for IT Officers Interview in Banks

811