What is difference between static and singleton class?



What is difference between static and singleton class?..

Answer / 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

More Spring Framework Interview Questions

What is the use of @service annotation?

1 Answers  


What is spring responseentity?

1 Answers  


What is a jointpoint?

1 Answers  


Does google use spring framework?

1 Answers  


What are the difference between spring aop and aspectj aop?

1 Answers  


Can I learn spring boot without spring? : Spring Boot

1 Answers  


What do you mean by bean autowiring in spring?

1 Answers  


How many types of spring beans are there?

1 Answers  


What is servlet in spring?

1 Answers  


What is the difference between spring batch and spring boot? : Spring Boot

1 Answers  


What are the ways to insert the collection concept in spring?

1 Answers  


What is the difference between war file and jar file?

1 Answers  


Categories