System.setProperty想到的

public static String setProperty(String key, String value) {
checkKey(key);
SecurityManager sm = getSecurityManager();
if (sm != null) {
sm.checkPermission(new PropertyPermission(key,
SecurityConstants.PROPERTY_WRITE_ACTION));
} get

return (String) props.setProperty(key, value);
} 虚拟机

这个方法应该是往虚拟机这个大容器里添加变量值。 it

相关文章
相关标签/搜索