Question:
What is the difference between composer.json and composer.lock file in Magento 2?
Sample Answer:
- composer.json contains all the list of dependencies that are required for the magento.
- composer.lock file contains all the list of module/components/extensions that are used in the Magento. Contains versions and dependencies of Magento and all modules in Magento.