Why singleton pattern is better than creating singleton class with static instance?


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

Post New Answer

More Core Java Interview Questions

Which sorting algorithm is best in java?

0 Answers  


Which container method is used to cause a container to be laid out and redisplayed in java programming?

0 Answers  


Difference between overloading and Overriding. <Giving a confusing example to test the concept.> (also asked in PA Consultancy Group,iflex,Value chain,IBM,CTS,Accenture, Tarang>

12 Answers   Accenture, CTS, Extensio, IBM, iFlex, PA Consulting, Symphony, Tarang,


What is cloneable interface?

8 Answers  


Explain different data types in Java.

5 Answers  


What is off heap memory?

0 Answers  


If two threads call a static method at the same point of time, what will happen?

3 Answers   KPIT,


Can a final variable be null?

0 Answers  


What are the advantages of java over cpp?

0 Answers  


How to read and write image from a file ?

0 Answers  


Describe the various concepts related to object oriented programming (oop).

0 Answers  


How many digits can a float hold?

0 Answers  


Categories