adspace
Answer Posted / Ishan Bhatnagar
The Singleton design pattern is typically used in Java when exactly one instance of a class is needed throughout the entire application. This can be achieved by making the constructor private and providing a public static method to access the single instance.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Are jvm’s platform independent?
What is the locale class?
What is the java api?
what is reflection api? How are they implemented?
What is the first argument of the string array in main method?
What if I write static public void instead of public static void?
How does java handle integer overflows and underflows?
What is the resourcebundle class?
What do you understand by casting in java language? What are the types of casting?
Can we extract main method from another class?