Why you should not use singleton?


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

Post New Answer

More Core Java Interview Questions

Which collection is thread safe in java?

0 Answers  


What isan abstract class and when do you use it?

1 Answers   Genpact,


What is JDK? Mention the variants of JDK?

1 Answers  


I want to print “hello” even before main is executed. How will you acheive that?

0 Answers  


What is instance example?

0 Answers  


what state does a thread enter when it terminates its processing? : Java thread

0 Answers  


I have a sorting issue with a Hashmap. My constraint is that I MUST use the Hashmap and work with existing code. I do a database query and place the results in a Hashmap. When I iterate thru the Hashmap, it loses the original alphabetical sorting done by the database. So, my problem is that I must sort the results coming out of the Hashmap which is then placed into another class.

1 Answers  


What is the difference between serial and throughput garbage collector?

0 Answers  


Which browsers work with java?

0 Answers  


Explain thread life cycle in java?

0 Answers  


Can a class declared as private be accessed outside it’s package?

0 Answers  


What are the types of statement? explain

1 Answers   SysBiz,


Categories