摘要: int[ ] arry = new int[3]; arry变量在栈中,new int[3]的数组是在堆中,分配了三个连续的内存,array存储的是数组在堆中的首地址。 阅读全文
posted @ 2019-03-17 17:16 爱我别走111 阅读(465) 评论(0) 推荐(0)
摘要: 1、线程池的工具类Executors,通过该工具类可以得到4中线程池对象,即:Executors.newCachedThreadPool()、Executors.newSingleThreadExecutor()、Executors.newFixedThreadPool(nThreads)、Exec 阅读全文
posted @ 2019-03-17 16:21 爱我别走111 阅读(178) 评论(0) 推荐(0)