In my understanding all java classes are loaded dynamically into memory, that is when JVM sees for the first time a CLASS symbol, it loads its content into memory.
In java we are used to say we are making the JVM load a class dynamically when doing the following:
(1)
Class aClass = classLoader.loadClass("com.stackoverflow.MyClass");
But, from what I said before, to me it seems that the JVM does always the same thing. I mean no more steps are needed to load a class using snippet (1), than are needed when loading a class when the JVM bumps for the first time into a CLASS symbol.
Am I getting something wrong ? Are they two different concepts all along ? thanks