What is the purpose of a custom class loader in Java?
A custom class loader is used to load classes from external resources, like databases or network locations, and also to enforce specific security policies.
Thatâ€™s partially correct. Custom class loaders can load classes from external sources, but they also offer flexibility for specific loading behaviors, not just security policies.
Can you explain how custom class loaders can influence class resolution or provide versioning mechanisms for classes?