Quick Answer
ClassLoaders load class files into the JVM. Hierarchy: Bootstrap (loads core Java classes from rt.jar), Extension (loads ext/ directory classes), Application/System (loads your app's classpath). Parent delegation model: child loader asks parent first before loading itself - prevents duplicate loading and security exploits. Custom ClassLoaders enable hot reloading and plugins (OSGi, application servers).
Answer
ClassLoaders load classes dynamically at runtime. Types: Bootstrap, Extension, System, and Custom loaders. Enable modularity, dynamic behavior, and class reloading.
S
SugharaIQ Editorial Team
Verified Answer
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.