Mocking focuses on interactions, verifying that specific methods are called. Stubbing provides specific responses for method calls. In testing an e-commerce application, you might mock a database connection to ensure it's queried, while a stub would return a fixed product list for testing display logic.