摘要:
说到泛型,就不得说起“擦除”这个概念,相比于c#来说,java的泛型只存在于程序的源码中,在编译后的class文件中不存在,这个过程就是--泛型"擦除";所以,对于new ArrayList<String> 和 new ArrayList<Integer> 来说,两个对象在编译之后两者是一样的,通过 阅读全文
posted @ 2019-11-04 20:04
wangsong412
阅读(397)
评论(0)
推荐(0)
摘要:
Map<Integer, Long> map = new HashMap<>(); map.put(0, 0L); map.put(1, 1L); String a = JSON.toJSONString(map); map = JSON.parseObject(a, Map.class); Long b = map.get(1); #########Exception in thread "ma 阅读全文
posted @ 2019-11-04 19:02
wangsong412
阅读(3253)
评论(0)
推荐(0)
浙公网安备 33010602011771号