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
Is java call by reference?
What is the difference between class & structure?
Write a program to print the pattern given below
what is the output??????? public class multireturn { public(int assign x ( int x) { if(4==x) { return 7; } else if (7=x+3) { return 6; } return 5; } }
Can java hashmap have duplicate keys?
If you are reviewing the code of your team members, what points will you look at, assuming the performance of the application is not so great
How objects of a class are created if no constructor is defined in the class?
What is flush buffer?
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?
Can an interface have a class?
what is the use of abstract class?
3 Answers Amdocs, Atos Origin, Invictus,
How to avoid memory leak in java?