What is Library vs Framework.
Understanding the difference between Java Library vs Java Framework.
A library is a single jar with classes with clear and simple responsibilities, and no transitive dependencies. I consider a framework to be a family of libraries (more or less related) that can be combined in more than one way, depending on the type of application that you are building.
So a framework is complex, but also flexible and more powerful, because some interactions between the components are predefined and supported by the dependency relationships between them.