2012年3月22日

J2SE-面向对象

摘要: View Code public static void main(String[] args) throws Exception { //CreateUserRoleField.getInstance(); list = new ArrayList<UserRoleVO>(); UserRoleVO u = new UserRoleVO(); u.setIdcard("1"); u.setUsername("name1"); u.setRolename("rolename1"); list.ad... 阅读全文

posted @ 2012-03-22 17:54 lovebeauty 阅读(312) 评论(0) 推荐(0) 编辑

J2SE-程序执行与内存图

摘要: 全局程序运行内存图基础数据类型:byte,short,int,long(整数) float,double(浮点) -- 数值 char --字符型 boolean --布尔型程序执行时所有的东西都是先载入到内存中的code segment,然后关联内存的其他三个区,程序执行,变量是内存中的小块区域,使用变量名来访问,先声明,然后赋值,之后才能使用类,方法都位于代码区(code segment)字符串常量"sdsd" "a",静态常量位于数据区(data segment)对象是new出来的,位于堆内存(heap),类的每个成员在不同的对象中都有不用的值(除 阅读全文

posted @ 2012-03-22 12:17 lovebeauty 阅读(592) 评论(0) 推荐(0) 编辑

导航