小编Alo*_*hak的帖子

HDFS和NFS之间的区别?

我是新手.想知道hadoop分布式文件系统和网络文件系统之间的基本区别,以及hdfs比nfs有什么好处?

unix operating-system hadoop mapreduce

15
推荐指数
1
解决办法
7942
查看次数

它不会抛出异常ConcurrentModificationException

我有下面的代码,我希望它抛出一个ConcurrentModificationException,但它运行成功.为什么会这样?

public void fun(){
    List <Integer>lis = new ArrayList<Integer>();
    lis.add(1);
    lis.add(2);

    for(Integer st:lis){
        lis.remove(1);
        System.out.println(lis.size());
    }
}

public static void main(String[] args) {
    test t = new test();
    t.fun();
}
Run Code Online (Sandbox Code Playgroud)

java iterator

10
推荐指数
1
解决办法
954
查看次数

标签 统计

hadoop ×1

iterator ×1

java ×1

mapreduce ×1

operating-system ×1

unix ×1