问题
It is said that class loader of java adds security to JRE , if its function is to load all of the classes how can it provide security to java,can you shed some light on this topic,any help is appreciated. I am talking about security from network sources,security from those classes imported from network.
回答1:
This link might help. Java can provide a "sandbox" environment which can be customized. It restricts class from accessing resources outside the sandbox.
来源:https://stackoverflow.com/questions/8545096/java-class-loader-security-handling