锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲一区二区三区无码国产,亚洲精品在线视频观看,久久亚洲精品11phttp://www.tkk7.com/JafeLee/category/24815.htmlzh-cnTue, 28 Aug 2007 01:26:20 GMTTue, 28 Aug 2007 01:26:20 GMT60Puzzlers with Character (1)http://www.tkk7.com/JafeLee/archive/2007/08/26/139649.htmlJafeJafeSun, 26 Aug 2007 14:53:00 GMThttp://www.tkk7.com/JafeLee/archive/2007/08/26/139649.htmlhttp://www.tkk7.com/JafeLee/comments/139649.htmlhttp://www.tkk7.com/JafeLee/archive/2007/08/26/139649.html#Feedback0http://www.tkk7.com/JafeLee/comments/commentRss/139649.htmlhttp://www.tkk7.com/JafeLee/services/trackbacks/139649.htmlPuzzle 11:
LastLaugh.java
浣?+ 鍜宑har鍨嬪悓鏃跺嚭鐜扮殑鏃跺欙紝鍒嗘竻榪愮畻鏄瓧絎︿覆榪炴帴榪愮畻榪樻槸綆鍗曠殑綆楁湳榪愮畻銆?br />JSL 5.1.2銆?.6.2
Puzzle 12:
Abc.java
鍏充簬鏁扮粍鐨勶紝鍙傝JSL 10


Jafe 2007-08-26 22:53 鍙戣〃璇勮
]]>
Expressive Puzzlers (2)http://www.tkk7.com/JafeLee/archive/2007/08/23/138900.htmlJafeJafeThu, 23 Aug 2007 09:56:00 GMThttp://www.tkk7.com/JafeLee/archive/2007/08/23/138900.htmlhttp://www.tkk7.com/JafeLee/comments/138900.htmlhttp://www.tkk7.com/JafeLee/archive/2007/08/23/138900.html#Feedback0http://www.tkk7.com/JafeLee/comments/commentRss/138900.htmlhttp://www.tkk7.com/JafeLee/services/trackbacks/138900.htmlPuzzle 8:
DosEquiz.java

榪欎釜璋滈鏄叧浜?Conditional Operator ? :[JLS 15.25]銆?br />1銆丆onditional Operator 鏈変笁涓繍綆楃琛ㄨ揪寮忥紝絎竴涓繀欏繪槸 boolean鎴?Boolean鍨嬬殑錛屽惁鍒欏紩鍙戜竴涓猚ompile-time error 銆?br />2銆佷竴涓?Conditional Expression鐨勭被鍨婽鏄敱絎簩涓〃杈懼紡 T2鍜岀涓変釜琛ㄨ揪寮廡3鐨勭被鍨嬫潵鍐沖畾鐨勩傚叿浣撹鍒欏涓嬶細(xì)
  • rule 1:聽 濡傛灉T2 == T3錛堝寘鎷琓2 == T3 == null鐨勬儏鍐碉級(jí)錛岄偅涔?T = T2錛圱3錛夈?/li>
  • rule 2:聽 濡傛灉 T2涓嶵3榪欎袱涓箣涓湁涓涓槸boolean鍨嬶紝鍙﹀涓涓槸Boolean鍨嬶紝閭d箞 T = boolean銆?/li>
  • rule 3:聽 濡傛灉T2涓嶵3涔嬩腑鏈変竴涓槸null綾誨瀷錛岃屽彟澶栦竴涓槸涓涓紩鐢ㄧ被鍨?reference type) RT錛岄偅涔圱 = RT
  • 濡傛灉T2涓嶵3鏄彲浠ヨ漿鍖栨垚鏁板肩被鍨嬬殑錛岄偅涔堢粨鏋滄湁浠ヤ笅鍑犵鎯呭喌錛?/li>
    1. rule 4:聽 濡傛灉T2涓嶵3鏈変竴涓槸byte鎴栬匓yte錛屽彟涓涓槸short鎴栬匰hort錛岄偅涔圱 = short
    2. rule 5:聽 濡傛灉T2涓嶵3涓湁涓涓槸 GT 鍨嬶紝榪欓噷 GT 娉涙寚byte, short, char涓殑浠諱綍涓涓? 鑰屼笖鍙︿竴涓槸涓涓猧nt鍨嬬殑甯擱噺琛ㄨ揪寮?娉ㄦ剰錛屽繀欏繪槸涓涓?int鍨嬬殑constant expression)錛岃屼笖 璇ュ父閲忚〃杈懼紡鍙互鐢℅T琛ㄧず錛堝嵆涓嶄細(xì)浜х敓綺懼害鎹熷け鐨勬儏鍐碉紝涓漢鐨勭悊瑙_^錛夛紝鍒橳=GT銆?/li>
    3. rule 6錛?濡傛灉T2鍜孴3鏈変竴涓槸Byte鍨嬶紝鍙︿竴涓槸鍙互鐢╞yte鍨嬭〃紺虹殑int鍨嬪父閲忚〃杈懼紡錛岄偅涔圱=byte
    4. rule 7錛?濡傛灉T2鍜孴3鏈変竴涓槸Short鍨嬶紝鍙︿竴涓槸鍙互鐢╞yte鍨嬭〃紺虹殑int鍨嬪父閲忚〃杈懼紡錛岄偅涔圱=short
    5. rule 8錛?濡傛灉T2鍜孴3鏈変竴涓槸Character鍨嬶紝鍙︿竴涓槸鍙互鐢╟har鍨嬭〃紺虹殑int鍨嬪父閲忚〃杈懼紡錛岄偅涔圱=char
    6. rule 9:聽 Otherwise, binary numeric promotion (JLS 5.6.2) is applied to the operand types, and the type of the conditional expression is the promoted type of the second and third operands. Note that binary numeric promotion performs unboxing conversion (JLS 5.1.8) and value set conversion (JLS 5.1.13).(榪欎釜寰堝璇嶈閮戒笉鐭ヨ鎬庝箞緲昏瘧錛屽氨鐩存帴copy榪囦簡(jiǎn)銆傘傘傦級(jí)
  • rule 10:聽 Otherwise, the second and third operands are of types S1 and S2 respectively. Let T1 be the type that results from applying boxing conversion to S1, and let T2 be the type that results from applying boxing conversion to S2. The type of the conditional expression is the result of applying capture conversion (JLS 5.1.10) to lub(T1, T2) (JLS 15.12.2.7).


Puzzle 9:
Tweedledum.java
鍏充簬Compound Assignment Operators錛屽弬瑙丣LS 15.26.2.
Puzzle 10:
Tweedledee.java



Jafe 2007-08-23 17:56 鍙戣〃璇勮
]]>
Expressive Puzzlers (1)http://www.tkk7.com/JafeLee/archive/2007/08/11/136015.htmlJafeJafeSat, 11 Aug 2007 05:46:00 GMThttp://www.tkk7.com/JafeLee/archive/2007/08/11/136015.htmlhttp://www.tkk7.com/JafeLee/comments/136015.htmlhttp://www.tkk7.com/JafeLee/archive/2007/08/11/136015.html#Feedback0http://www.tkk7.com/JafeLee/comments/commentRss/136015.htmlhttp://www.tkk7.com/JafeLee/services/trackbacks/136015.htmlPuzzle 1:

褰撴眰浣欒繍綆?remainder operation)絎?% 榪斿洖涓涓潪闆朵綑鏁版椂錛屼綑鏁扮殑絎﹀彿浣嶅拰宸﹁竟鎿嶄綔鏁扮殑絎﹀彿浣嶇浉鍚屻備緥濡?div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;">聽聽聽聽聽聽聽聽System.out.println((-53)%9);聽//聽-8
聽聽聽聽聽聽聽聽System.out.println(53%(-9));聽//8
聽聽聽聽聽聽聽聽System.out.println((-53)%(-9));聽//-8
Puzzle 2:

Change.java

鍏充簬嫻偣鏁扮殑浜岃繘鍒惰〃紺猴綖锝?br />錛?錛変簩榪涘埗嫻偣鏁板茍涓嶈兘綺劇‘琛ㄧず鎵鏈夌殑灝忔暟
錛?錛夊璁$畻綺懼害瑕佹眰姣旇緝鍑嗙‘錛堜緥濡傞噾铻嶈綆楋級(jí)鏃訛紝涓嶈浣跨敤float鍜宒ouble錛屽敖閲忎嬌鐢╥nt, long錛孊igDecimal.
錛?錛夋帹鑽愰槄璇繪枃绔狅細(xì)What Every Computer Scientist Should Know About Floating-Point Arithmetic
緗戜笂寰堝鍦版柟閮芥湁鐨勩傚彟涓鏈墰涔?Computer Systems A Programmers's Perspective涓婁篃鏈夎嫻偣鏁?br />錛?錛塉LS 3.10.1鐢辮鑼冨彲鐭?0.1, .1, 1. 閮芥槸鍚堟硶鐨勬誕鐐規(guī)暟銆傞渶瑕佹敞鎰忕殑鏄湪java涓紝嫻偣鏁版湁涓ょ鍘熺敓綾誨瀷float,double錛屽綋嫻偣鏁扮殑鍚庣紑鏄疐鎴栬協(xié)鏃訛紝璇ユ誕鐐規(guī)暟涓篺loat綾誨瀷錛屾病鏈夊悗緙鎴栬呭悗緙鏄疍鎴栬卍鏃訛紝璇ユ誕鐐規(guī)暟鏄痙ouble綾誨瀷鐨勩傛敞鎰忎笅闈㈢殑渚嬪瓙
FloatPoint.java

緇撴灉錛?br />
緇撴灉

Puzzle 3:
闇瑕佹敞鎰廽ava鏄浣曞鐞嗘暣鏁版孩鍑虹殑錛岀湅涓嬮潰鐨勪緥瀛愬氨涓鐩簡(jiǎn)鐒朵簡(jiǎn)錛屽埆蹇樹簡(jiǎn)long鏄?8 bytes錛宨nt鏄?4 bytes鐨剘~
LongDividion.java

Puzzle 4:
娣誨姞long鍨嬫暣鏁扮殑鍚庣紑鏃惰浣跨敤L閬垮厤鐢╨錛屽悓鏍蜂笉瑕佸崟鐙嬌鐢ㄥ皬鍐欏瓧姣峫浣滀負(fù)鍙橀噺鍚嶏紝鐞嗙敱鏄樉鑰屾槗瑙佺殑錛歭鍜?鍦ㄥぇ澶氭暟瀛椾綋涓お闅懼尯鍒嗐?br />
Puzzle 5:
錛?錛夊拰鍗佽繘鍒舵暟涓嶅悓錛屽綋鍗佸叚榪涘埗銆佸叓榪涘埗鏁扮殑鏈楂樹綅鏄?鏃訛紝琛ㄧず瀹冩槸涓涓礋鏁幫紙鍦ㄥ崄榪涘埗鏁頒腑錛岃〃紺轟竴涓礋鏁拌鏄懼紡浣跨敤絎﹀彿-)
錛?錛夊敖閲忛伩鍏嶆販鍚堢被鍨嬭繍綆楋紝渚嬪鏈緥涓殑 long鍨嬪拰int鍨嬬殑鍔犳硶錛屽湪java涓紝涓涓暣鏁板鏋滄病鏈夊悗緙L鎴杔錛屽垯瀹冩槸涓涓猧nt鍨嬭屼笉鏄痩ong鍨嬨?div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;">JoyOfHex.java
Puzzle 6:
The rule "Sign extension is performed if the type of the original value is signed; zero extension if it is a char, regardless of the type to which it is being converted" describes the sign extension behavior when converting from narrower integral types to wider.

Multicast.java
Puzzle 6:
JLS 15.7 Evaluation Order
CleverSwap.java



Jafe 2007-08-11 13:46 鍙戣〃璇勮
]]>
Java 瑙f儜錛堣嫳鏂囩増錛?/title><link>http://www.tkk7.com/JafeLee/archive/2007/08/11/136005.html</link><dc:creator>Jafe</dc:creator><author>Jafe</author><pubDate>Sat, 11 Aug 2007 04:40:00 GMT</pubDate><guid>http://www.tkk7.com/JafeLee/archive/2007/08/11/136005.html</guid><wfw:comment>http://www.tkk7.com/JafeLee/comments/136005.html</wfw:comment><comments>http://www.tkk7.com/JafeLee/archive/2007/08/11/136005.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/JafeLee/comments/commentRss/136005.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/JafeLee/services/trackbacks/136005.html</trackback:ping><description><![CDATA[ <table style="margin-top: 16px;" border="0" cellpadding="0" cellspacing="0" height="206" width="733"> <tbody> <tr> <td>銆愬師 涔?鍚嶃?</td> <td> Java Puzzlers錛歍raps錛孭itfalls錛宎nd Corner Cases </td> </tr> <tr> <td>銆愬師鍑虹増紺俱?</td> <td>Addison-Wesley</td> </tr> <tr> <td>銆愪綔銆銆鑰呫?/td> <td>錛堢編錛塉oshua Bloch, Neal Gafter聽<span></span></td> </tr> <tr> <td>銆愪笡 涔?鍚嶃?</td> <td>鍏歌棌鍘熺増涔﹁嫅</td> </tr> <tr> <td>銆愬嚭 鐗?紺俱?</td> <td> <!--<a href="/search/power_search/power_search.asp?key1=浜烘皯閭數(shù)鍑虹増紺? target=_blank></a> --> 浜烘皯閭數(shù)鍑虹増紺?/td> </tr> <tr> <td>銆愪功 鍙楓?/td> <td>7115149569</td> </tr> <tr> <td>銆愬紑 鏈?/td> <td>16寮</td> </tr> <tr> <td>銆愰〉 鐮併?/td> <td>282</td> </tr> <tr> <td>銆愬嚭鐗堟棩鏈熴?/td> <td>2006騫?鏈?/td> </tr> <tr> <td>銆愮増 嬈°?/td> <td>1-1<br /></td> </tr> <tr> <td valign="top"> <br /> </td> <td valign="top"> <br /> </td> </tr> </tbody> </table> <br />寰堜笉閿欑殑涓鏈功錛屾瘡涓棶棰樼瘒騫呯煭灝忥紝闂鐭ヨ瘑鎬у緢寮猴紝鍚屾椂鍙堜笉涔忚叮鍛蟲э綖锝?br />緗戜笂寰堝鍦版柟閮芥湁鐢?shù)瀛愮増涓嬭浇锛屽寘鎷瑆ww.flazx.com<br />btw錛孞oshua Block鏄?Effective Java鐨勪綔鑰?br /><br /><img src ="http://www.tkk7.com/JafeLee/aggbug/136005.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/JafeLee/" target="_blank">Jafe</a> 2007-08-11 12:40 <a href="http://www.tkk7.com/JafeLee/archive/2007/08/11/136005.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://zjdoukai.com" target="_blank">亚洲国产精品一区第二页</a>| <a href="http://bz600.com" target="_blank">亚洲毛片免费视频</a>| <a href="http://35633487.com" target="_blank">老司机69精品成免费视频</a>| <a href="http://22youjizz.com" target="_blank">久久亚洲熟女cc98cm</a>| <a href="http://w7768.com" target="_blank">永久中文字幕免费视频网站</a>| <a href="http://ywgj50225.com" target="_blank">在线视频网址免费播放</a>| <a href="http://74rr.com" target="_blank">亚洲日韩中文字幕</a>| <a href="http://lfpfjc.com" target="_blank">亚洲国产精品丝袜在线观看</a>| <a href="http://0730jxpm.com" target="_blank">无码人妻一区二区三区免费看</a>| <a href="http://whxhjc.com" target="_blank">亚洲色精品三区二区一区</a>| <a href="http://8xxon8.com" target="_blank">亚洲欧洲∨国产一区二区三区</a>| <a href="http://449892.com" target="_blank">2021国产精品成人免费视频</a>| <a href="http://www-777730.com" target="_blank">人人爽人人爽人人片A免费</a>| <a href="http://69ct.com" target="_blank">666精品国产精品亚洲 </a>| <a href="http://microston.com" target="_blank">亚洲 国产 图片</a>| <a href="http://123470c.com" target="_blank">久久一区二区三区免费播放</a>| <a href="http://tpwelert.com" target="_blank">朝桐光亚洲专区在线中文字幕</a>| <a href="http://dddd20.com" target="_blank">午夜亚洲AV日韩AV无码大全</a>| <a href="http://mmstom.com" target="_blank">可以免费观看一级毛片黄a</a>| <a href="http://sjkuaixun.com" target="_blank">97在线视频免费</a>| <a href="http://ri9999.com" target="_blank">亚洲精品国产日韩无码AV永久免费网 </a>| <a href="http://s8023.com" target="_blank">亚洲一本之道高清乱码</a>| <a href="http://xiaojiejieav.com" target="_blank">国产亚洲精品线观看动态图</a>| <a href="http://yongfu-sh.com" target="_blank">成年人网站在线免费观看</a>| <a href="http://woaianli.com" target="_blank">在线观看免费视频一区</a>| <a href="http://gg596gg.com" target="_blank">久久亚洲色WWW成人欧美</a>| <a href="http://gsonlinet.com" target="_blank">久久精品国产亚洲AV大全</a>| <a href="http://js06vip.com" target="_blank">亚洲毛片不卡av在线播放一区</a>| <a href="http://516kd.com" target="_blank">免费电视剧在线观看</a>| <a href="http://bxd888.com" target="_blank">日本免费久久久久久久网站</a>| <a href="http://wwwbu610.com" target="_blank">一级毛片免费不卡</a>| <a href="http://se988.com" target="_blank">亚洲av无码无线在线观看</a>| <a href="http://qqcao7.com" target="_blank">久久精品亚洲AV久久久无码</a>| <a href="http://hnmeiankj.com" target="_blank">婷婷亚洲久悠悠色悠在线播放</a>| <a href="http://2266511.com" target="_blank">亚洲日韩人妻第一页</a>| <a href="http://520xiang.com" target="_blank">成年女人毛片免费播放视频m</a>| <a href="http://5aa6.com" target="_blank">57pao一国产成视频永久免费</a>| <a href="http://siqingsizu.com" target="_blank">中文字幕在线免费看</a>| <a href="http://bjbf99.com" target="_blank">无码的免费不卡毛片视频</a>| <a href="http://by33321.com" target="_blank">亚洲大码熟女在线观看</a>| <a href="http://020iws.com" target="_blank">久久亚洲国产成人影院</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>