How can you make sure that your singleton class will always return single instance in multi-threaded environment?


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

Post New Answer

More Core Java Interview Questions

State the main difference between c++ and java?

0 Answers  


Can I create any Marker Interface? If yes then how can I use it???

4 Answers  


What do you understand by Header linked List?

0 Answers   Genpact,


Can static methods be inherited?

0 Answers  


What is a ternary operator in java? What is an interface?

0 Answers  


Why do we need singleton?

0 Answers  


What is java jit compilers?

0 Answers  


Is main a keyword in java?

0 Answers  


when i write string s1="java"; in one program(application) and string s2="java"; in another application on the same jvm will both objects s2,s2 will refer to same memory location where "java" is stored in string pool.

2 Answers  


What is an argument in java?

0 Answers  


What is the difference between the direct buffer and non-direct buffer in java?

0 Answers  


How can we handle runtime exceptions? write one sample program? Can we write runtime exceptions beside the throws key word? if yes write sample program?

1 Answers   Huawei,


Categories