When should I use singleton pattern?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

How do you use substring in java?

0 Answers  


What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?

0 Answers  


Write a function for palindrome and factorial and explain?

0 Answers   Honeywell, Huawei, Zomato,


What is vector?

0 Answers  


I have a class which is abstract which contains only the abstract methods. This is similar to an interface. Then, if i have given a choice to choose one of them. Which one i have to choose and why?

4 Answers  






Why do we use predicate in java?

0 Answers  


Explain different ways of passing arguments to sub-routine?

1 Answers  


What is an Iterator interface?

2 Answers  


Can a vector contain heterogenous objects?

0 Answers  


Why should we use singleton pattern instead of static class?

0 Answers  


What is JVM and is it platform independent?

0 Answers  


Why Java is not purely object oriented?

50 Answers   Elitecore, Persistent, Reliance, Wipro,


Categories