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

How do you remove an object from an arraylist in java?

0 Answers  


Can we have multiple public classes in a java source file?

0 Answers  


why we cannot declare static variable inside a static method

4 Answers  


What’s the difference between unit, integration and functional testing?

0 Answers  


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

0 Answers  






What is difference between java and java ee?

0 Answers  


What is a Java Virtual Machine?

1 Answers  


Explain about fail fast iterators in java?

0 Answers  


Explain how hashmap works?

0 Answers  


Which Java operator is right associative?

3 Answers  


What class is used to implement a Throwable array?

3 Answers  


In collection sorting comparable and comparator interface will be used..but why this two interfaces required..two will work same purpose so why there are two interfaces instead of one?when to use comparator and when to use comparable?

1 Answers   Ericsson,


Categories