Vaibhav Gargs wrote:I am just wondering why it start from bottom i.e. Application > Extension > Bootstrap? Why doesn't it start directly from BootStrap since it will first check if it can load the class or not?
Vaibhav Gargs wrote:So, I hope the default mechanism for JVM is Parent First. Please correct me if I am wrong.
And, if we use Parent Last then shouldn't it lead to security issues? What will be the use cases of using Parent Last? Is it really recommended/used in industry?
Paul Clapham wrote:
And security issues? All I know about that is that the security-breakers are far better at their jobs than I am, so I would never say that any action at all is free of security issues. But if you had any particular issues in mind, that could be worth discussing.
Vaibhav Gargs wrote:Suppose we write a custom class say String.java and it is included in our classpath and we are using Parent Last class loader, then what will happen?
Also, we say that the same class can be loaded by two different class loaders, how is it possible?