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

相關文章
相關標籤/搜索