Dynamic Class Loading - The Advantages & Uses

Hi all, I am trying to understand where Dynamic Class Loading is used. I know that its core to the Singelton design pattern but is it used in RMI or similar tecchnologies, and if so how?Thanks,
[214 byte] By [notforgooglea] at [2007-11-27 5:30:56]
# 1

Where did you read it was core to the singleton pattern? It isn't.

You use it when you want to use classes that are not known at compile-time. For instance, Tomcat uses dynamic classloading to load and run servlets that were not known about at compile-time. You write a class that extends HttpServlet, Tomcat uses a classloader to load it at runtime, and because it's a subclass of HttpServlet, Tomcat knows what to do with it, that is, invoke service, doGet, doPost etc on it.

georgemca at 2007-7-12 14:55:40 > top of Java-index,Core,Core APIs...