adspace
What is difference between static and singleton class?
Answer Posted / Poonam Singh
A static class in Java can be thought of as a collection of utility methods, while a Singleton class is a single instance of a class that can be accessed across the entire application. A static class does not have instances, and its methods are shared among all objects. A Singleton class has exactly one instance per JVM, but its methods can still interact with other objects.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers