摘要: GC是垃圾收集的意思(Gabage Collection),内存处理是编程人员容易出现问题的地方,忘记或者错误的内存回收会导致程序或系统的不稳定甚至崩溃,Java提供的GC功能可以自动监测对象是否超过作用域从而达到自动回收内存的目的,Java语言没有提供释放已分配内存的显示操作方法。 对于GC来说, 阅读全文
posted @ 2020-04-04 23:51 平凡岁月 阅读(1392) 评论(0) 推荐(0)
摘要: public class InsertSort { public static void main(String[] args) { int[] arr = {500, 465, 78, 99, 3, 64}; insertSort(arr); } public static void insert 阅读全文
posted @ 2020-04-04 23:13 平凡岁月 阅读(152) 评论(0) 推荐(0)
摘要: public class BubbleSort { public static void main(String[] args) {// int arr[] = {3, 9, -1, 10, -2}; int[] arr = new int[10000]; for (int i = 0; i < a 阅读全文
posted @ 2020-04-04 22:54 平凡岁月 阅读(153) 评论(0) 推荐(0)
摘要: public class BubbleSort { public static void main(String[] args) {// int arr[] = {3, 9, -1, 10, -2}; int[] arr = new int[10000]; for(int i=0;i<arr.len 阅读全文
posted @ 2020-04-04 22:52 平凡岁月 阅读(157) 评论(0) 推荐(0)
摘要: 一、JVM内存模型 1、程序计数器记录正在执行的虚拟机字节码地址。 2、JAVA虚拟栈JAVA方法执行时创建的栈帧,用于存储局部变量表、操作数栈、常量池引用等信息。可以用过-Xss来设置java虚拟栈内存大小,JDK1.4默认256k,JDK1.5以后默认1.5M。 java虚拟栈中可能会抛出以下异 阅读全文
posted @ 2020-04-03 23:20 平凡岁月 阅读(124) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示