- 0
- 0
- 约7.54千字
- 约 36页
- 2017-08-19 发布于广东
- 举报
* * * * * * * * * 递归方法 在方法中呼叫自身同名方法,而呼叫者本身会先被置入内存「堆栈」(Stack)中 堆栈是一种「先进后出」(First in, lastout)的数据结构 private static int gcd(int m, int n) { if(n == 0) return m; else return gcd(n, m % n); } 垃圾收集 Java提供垃圾收集机制 在适当的时候,Java执行环境会自动检查对象,看看是否有未被参考的对象 如果有的话就清除对象、回收对象所占据的内存空间 在程序执行的空闲时候,您可以建议执行环境进行垃圾收集,但也仅止于建议 垃圾收集 finalize()会在对象被回收时执行 因为不知道对象资源何时被回收,所以也就不知道finalize()真正被执行的时间 垃圾收集 public class GcTest { private String name; public GcTest(String name) { this.name = name; System.out.println(name + 建立); } //对象回收前执行 prote
您可能关注的文档
- IT职业英语电子教案高巍巍 Unit10 Computer Security 10 2 listening.ppt
- IT职业英语电子教案高巍巍 Unit10 Computer Security 10 3 speaking.ppt
- IT职业英语电子教案高巍巍 Unit10 Computer Security 10 4 writting.ppt
- IT职业英语电子教案高巍巍 Unit11 The Development Environment 11 1 reading.ppt
- IT职业英语电子教案高巍巍 Unit11 The Development Environment 11 2 listening.ppt
- IT职业英语电子教案高巍巍 Unit11 The Development Environment 11 3 speaking.ppt
- IT职业英语电子教案高巍巍 Unit11 The Development Environment 11 4 writting.ppt
- IT职业英语电子教案高巍巍 Unit12 New Technology 12 1 reading.ppt
- IT职业英语电子教案高巍巍 Unit12 New Technology 12 2 listening.ppt
- IT职业英语电子教案高巍巍 Unit12 New Technology 12 3 speaking.ppt
最近下载
- D-Z-T 0462.3-2023 矿产资源“三率”指标要求 第3部分:铁、锰、铬、钒、钛(正式版).docx VIP
- 网络系统建设与运维中级 第7章 IPv6协议v3.2.pptx VIP
- 电子科技大学-2018.6月计算复杂性考试.docx VIP
- 吊篮施工计算书.pdf VIP
- 基于PLC的三工位钻床工作台控制系统设计.pptx VIP
- 化工仪表及自动化课件共58张PPT).pptx VIP
- 光固化胶水知识讲座课件.ppt VIP
- EN_IEC_61800-3-2018 可调速电力驱动系统第3部分:EMC要求和具体测试方法.pdf VIP
- 运动性肌肉损伤诊疗专家共识(2026版).docx
- AKH-0.66-200X50II低压电流互感器规格书.pdf VIP
原创力文档

文档评论(0)