1.普通集合类是不是可以直接转换为泛型的集合类? 好象是可以,因为以下代码可以正常运行 public static void main(String[] args) { List<String> ls = new ArrayList(); ls.add("str1"); ls.add("str2"); ls.add("str3"); for (String string : ls) { System.out.println(string); } } 2.以下代码中public后的那个<T>作何解释,好象去掉也是可以 ...
请问以下两种配置到底有什么区别呢? 使用带*的classpath: <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath*:context/*.xml</param-value> </context-param> 不使用带*的classpath: <context-param> <param-name>contextConfigLocation< ...
quickselect
搜索本博客
博客分类
最近加入圈子
存档
最新评论
评论排行榜