How can a custom class loader be used to implement class versioning in Java?
A custom class loader can load different versions of a class by using separate namespaces or class directories for each version of the class.
Well done! You've correctly explained how custom class loaders can manage class versioning.
Can you explain how you would handle class resolution when two versions of the same class are loaded by different class loaders?