﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-semi-sleep-最新评论</title><link>http://www.blogjava.net/semi-sleep/CommentsRSS.aspx</link><description /><language>zh-cn</language><pubDate>Thu, 08 Jan 2009 09:56:23 GMT</pubDate><lastBuildDate>Thu, 08 Jan 2009 09:56:23 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: 对Java Generic相关知识的总结</title><link>http://www.blogjava.net/semi-sleep/archive/2014/12/15/87557.html#421410</link><dc:creator>sss</dc:creator><author>sss</author><pubDate>Mon, 15 Dec 2014 09:30:00 GMT</pubDate><guid>http://www.blogjava.net/semi-sleep/archive/2014/12/15/87557.html#421410</guid><description><![CDATA[ 仍然搞不懂的地方<br><br>对于类似 java.util.Collections 的 max 方法，经过我的试验以下两种声明方式所能接受的类型是一样的，不明白它为什么要用前者。<br><br>public static &lt;T extends Object &amp; Comparable&lt;? super T&gt;&gt; T max1(Collection&lt;? extends T&gt; coll)<br><br>public static &lt;T extends Object &amp; Comparable&lt;? super T&gt;&gt; T max2(Collection&lt;T&gt; coll)<br><br><br>第一个可以接收T 的子类的容器,而第二个却不能.<img src ="http://www.blogjava.net/semi-sleep/aggbug/421410.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/semi-sleep/" target="_blank">sss</a> 2014-12-15 17:30 <a href="http://www.blogjava.net/semi-sleep/archive/2014/12/15/87557.html#421410#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>