摘要:
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)