framework library difference
The key difference between a library and a framework is
“Inversion of Control”. When calling a method from a library, the
developer is in control. With a framework, the control is inverted: the
framework calls the developer's code.