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

What is the file type?

0 Answers  


What are the types of casting?

0 Answers  


Write program to print Hello World and print each character address in that string and print how many times each character is in that string? Ex: H: 0 & 1 e:1 & 1 l :2,3,8 & 3 o:4,6 & 2 w:5 & 1 r: 7 & 1 d 9 & 1

7 Answers   Huawei, IBM,


v-model life cycle

0 Answers   Virtusa,


I have a String s = java; What is the output when I say s.replaceAll('j', 'k'); Also what is the value of s after replacing?

8 Answers   KPIT,


How many types of operators are there?

0 Answers  


Can a serialized object be transferred via network?

0 Answers  


In case of inheritance what is the execution order of constructor and destructor?

0 Answers   Agilent,


Explain, why the constructor is required in implemented class?

4 Answers  


what is function overloading in java?

0 Answers   Tavant Technologies, TCS, Virtusa,


what is the difference between thread and runnable types? : Java thread

0 Answers  


how session will be expired?

5 Answers   CybAge, Infosys,


Categories