文件名称:String_int
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 9kb
- 下载次数:
- 0次
- 提 供 者:
- fir****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
String int 字符串常量池 包装类型 函数参数 值传递引用传递 的 内存分配例子——源码
代码段:
public static void fun_ref (Ref_test ref_out){
Ref_test ref_in=new Ref_test()
ref_in.s1="in"
//ref_out.s1="out"
ref_out=ref_in //漏洞!!ref_out 指向ref_in ,
//那么当函数退出后,ref_out就会自动指向原来的堆!!!
System.out.println("fun_ref() ref_out.s1="+ref_out.s1)
}
-public static void fun_ref (Ref_test ref_out){
Ref_test ref_in=new Ref_test()
ref_in.s1="in"
//ref_out.s1="out"
ref_out=ref_in //漏洞!!ref_out 指向ref_in ,
//那么当函数退出后,ref_out就会自动指向原来的堆!!!
System.out.println("fun_ref() ref_out.s1="+ref_out.s1)
}
代码段:
public static void fun_ref (Ref_test ref_out){
Ref_test ref_in=new Ref_test()
ref_in.s1="in"
//ref_out.s1="out"
ref_out=ref_in //漏洞!!ref_out 指向ref_in ,
//那么当函数退出后,ref_out就会自动指向原来的堆!!!
System.out.println("fun_ref() ref_out.s1="+ref_out.s1)
}
-public static void fun_ref (Ref_test ref_out){
Ref_test ref_in=new Ref_test()
ref_in.s1="in"
//ref_out.s1="out"
ref_out=ref_in //漏洞!!ref_out 指向ref_in ,
//那么当函数退出后,ref_out就会自动指向原来的堆!!!
System.out.println("fun_ref() ref_out.s1="+ref_out.s1)
}
(系统自动生成,下载前可以参看下载内容)
下载文件列表
String_int
..........\.classpath
..........\.project
..........\bin
..........\...\string_int
..........\...\..........\fun.class
..........\...\..........\fun_class.class
..........\...\..........\Fun_ref.class
..........\...\..........\fun_String.class
..........\...\..........\p.class
..........\...\..........\Point.class
..........\...\..........\Ref_test.class
..........\...\..........\stingObject.class
..........\...\..........\String_int.class
..........\src
..........\...\string_int
..........\...\..........\fun.java
..........\...\..........\fun_class.java
..........\...\..........\Fun_ref.java
..........\...\..........\fun_String.java
..........\...\..........\stingObject.java
..........\...\..........\String_int.java
..........\.classpath
..........\.project
..........\bin
..........\...\string_int
..........\...\..........\fun.class
..........\...\..........\fun_class.class
..........\...\..........\Fun_ref.class
..........\...\..........\fun_String.class
..........\...\..........\p.class
..........\...\..........\Point.class
..........\...\..........\Ref_test.class
..........\...\..........\stingObject.class
..........\...\..........\String_int.class
..........\src
..........\...\string_int
..........\...\..........\fun.java
..........\...\..........\fun_class.java
..........\...\..........\Fun_ref.java
..........\...\..........\fun_String.java
..........\...\..........\stingObject.java
..........\...\..........\String_int.java