Can't the runtime be redesigned in such a way thatThat is exactly how it has been working for over ten years.
not all runtime classes are loaded before the actual
program is run. I mean, can't the necessary classes
be loaded dynamically.
This is just my idea and I might be wrong, if soYou are.
please correct me.
http://java.sun.com/developer/technicalArticles/javaseno. It doesn't all get read. Or if it does most of it doesn't stay in memory unless needed.
At this link, Sun has put the following words,
For example, a recent version of Java SE 6 sports
an rt.jar file of over 40 MB alone. If you add in the
various other JAR files, native libraries, and
resource files that get touched at startup,
regardless of any application-specific code, that's a
lot of data that has to be read in.
From that, I understood that rt.jar gets read fully
even if the application doesn't need all those
classes for running.