摘要:
VM 的Permanent generation space,实际上就是方法区,存储了下面两种类型的数据:1.Class的节本信息Package NameSuper class package nameClass or interfaceType modifiersSuper inferface package name2.其它信息The constant pool for the typeField informationMethod informationAll class (static) variables declaredin the type, except constantsA 阅读全文
摘要:
使用J2SE API读取Properties文件的六种方法1、使用java.util.Properties类的load()方法示例:InputStream in = lnew BufferedInputStream(new FileInputStream(name));Properties p = new Properties();p.load(in);2、使用java.util.ResourceBundle类的getBundle()方法示例:ResourceBundle rb = ResourceBundle.getBundle(name, Locale.getDefault());3、使用 阅读全文