摘要:
tips:解释下主线程等待,子线程执行,如果子线程发生异常会被捕捉,主线程也会发生异常而终止,不会一直阻塞下去 ExecutorService executorService= Executors.newSingleThreadExecutor(); Future<Double> cf = exec 阅读全文
摘要:
ArrayList public class ArrayList<E> extends AbstractList<E> implements List<E>, RandomAccess, Cloneable, java.io.Serializable 1.可以看到是是实现了RandomAccess接 阅读全文