Although I read the documentation, I'm not able to understand what is the difference here between those two lines of java codee when loading a class:
Class<?> cls = Class.forName("jdk.nashorn.api.scripting.ScriptObjectMirror", false, enginClassLoader);
Class<?> cls = Class.forName("jdk.nashorn.api.scripting.ScriptObjectMirror", true, enginClassLoader);
here the boolean parameter is explained in the documentation as follows:
initialize if true the class will be initialized. See Section 12.4 of The Java Language Specification.
In my case, even if i use the code with false parameter, it still works. So I wanted to know when it should be true then?