Java 7ÒѾÍê³ÉµÄÆß´óй¦ÄÜÔ¤ÀÀ
Java 7ÒѾÍê³ÉµÄÆß´óй¦ÄÜÔ¤ÀÀ ת×Ô51CTO
½ñÄêµÄDevoxx´ó»áÓÖÊÇÒ»´ÎÓйØJava 7½ø³ÌµÄÒ»´Îչʾ´ó»á¡£Ò»Î»DevoxxµÄ²Î»áÕßÔÚ²©¿ÍÖб¨¸æÁËJava 7ÏÖÔÚÒѾÍê³ÉµÄ7´óй¦ÄÜ¡£Java 7Ô¤¼Æ½«ÔÚ2010Äê9ÔÂÕýʽµ½À´¡£
JigsawÏîÄ¿¼ò½é£ºJava 7µÄÐÂÄ£¿éϵͳ
̽ÃØJava 7ÐÂÔöÀ¬»ø»ØÊÕÆ÷G1ÌØÐÔ
̽ÃØJava 7£ºJVM¶¯Ì¬ÓïÑÔÖ§³ÖÏê½â
Java 7й¦ÄܽéÉܼ°ÓëJava1.7ÐÔÄܲâÊÔ±È..
Java 7¾ö¶¨°üº¬±Õ°ü ·¢²¼ÈÕÆÚÍƳÙÖÁ2010..
¡¾51CTO¿ìÒë¡¿×î½üµÄDevoxx´ó»áÉÏ£¬Java 7½«°üº¬±Õ°üµÄÏûÏ¢ÁîºÜ¶àÈ˸е½Õñ·Ü——Õ⽫×öΪһ¸ö¶ÀÁ¢µÄJSR±»ÊµÏÖ¡£ÔÚÖÚ¶àJava 7еÄÓïÑÔÌØÐÔÖУ¬ÓÐһЩÏÖÔÚÒѾÍê³ÉÁË¡£Devoxx´ó»áµÄһλ²Î»áÕßÔÚ²©¿ÍÖб¨¸æÁËÏÂÃæÕâЩJava 7ÒѾÍê³ÉµÄ7´óй¦ÄÜ£º
1£©¶Ô¼¯ºÏÀàµÄÓïÑÔÖ§³Ö£»
2£©×Ô¶¯×ÊÔ´¹ÜÀí£»
3£©¸Ä½øµÄͨÓÃʵÀý´´½¨ÀàÐÍÍƶϣ»
4£©Êý×Ö×ÖÃæÁ¿Ï»®ÏßÖ§³Ö£»
5£©switchÖÐʹÓÃstring£»
6£©¶þ½øÖÆ×ÖÃæÁ¿£»
7£©¼ò»¯¿É±ä²ÎÊý·½·¨µ÷Óá£
ÏÂÃæÎÒÃÇÀ´×Ðϸ¿´Ò»ÏÂÕâ7´óй¦ÄÜ£º
¶Ô¼¯ºÏÀàµÄÓïÑÔÖ§³Ö
Java½«°üº¬¶Ô´´½¨¼¯ºÏÀàµÄµÚÒ»ÀàÓïÑÔÖ§³Ö¡£ÕâÒâζ׿¯ºÏÀàµÄ´´½¨¿ÉÒÔÏñRubyºÍPerlÄÇÑùÁË¡£
Ô±¾ÐèÒªÕâÑù£º
List<String> list = new ArrayList<String>(); list.add("item"); String item = list.get(0); Set<String> set = new HashSet<String>(); set.add("item"); Map<String, Integer> map = new HashMap<String, Integer>(); map.put("key", 1); int value = map.get("key");
ÏÖÔÚÄã¿ÉÒÔÕâÑù£º
List<String> list = ["item"]; String item = list[0]; Set<String> set = {"item"}; Map<String, Integer> map = {"key" : 1}; int value = map["key"];
ÕâЩ¼¯ºÏÊDz»¿É±äµÄ¡£
×Ô¶¯×ÊÔ´¹ÜÀí
JavaÖÐijЩ×ÊÔ´ÊÇÐèÒªÊÖ¶¯¹Ø±ÕµÄ£¬ÈçInputStream£¬Writes£¬Sockets£¬Sql classesµÈ¡£Õâ¸öеÄÓïÑÔÌØÐÔÔÊÐítryÓï¾ä±¾ÉíÉêÇë¸ü¶àµÄ×ÊÔ´£¬ÕâЩ×ÊÔ´×÷ÓÃÓÚtry´úÂë¿é£¬²¢×Ô¶¯¹Ø±Õ¡£
Õâ¸ö£º
BufferedReader br = new Buffered
Ïà¹ØÎĵµ£º
create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ
......
String str = "[010101]+[010102]";
String ss = "
System.out.println(ss); // \[010101]
[ ÊÇÌØÊâ×Ö·û£¬
ÐèÒªÓ÷´Ð±¸Ü \[ ¶ÔÆä½øÐÐתÒå
\\[010101]";
String ssss = "
\\ ......
ÎÒ¸Õ´ÓÔÚAntwerpÕÙ¿ªµÄDevoxx
´ó»áÉÏ»ØÀ´£¬»áÉϽéÉÜÁËJava7µÄÐÂÌØÐÔ£¬¶ÔÓ¦µÄJDK½«ÓÚ2010Äê9Ô·¢²¼¡£
ÏÂÃæÊÇ7¸öÒѾÍê³ÉµÄÐÂÌØÐÔ£º
¶ÔcollectionsµÄÓïÑÔ¼¶Ö§³Ö
×Ô¶¯×ÊÔ´¹ÜÀí
¸Ä½ø·ºÐÍÔÚ´´½¨ÊµÀýʱµÄÀàÐÍÒýÓÃ
´øÏ»®ÏßµÄÊý×Ö
ÔÚswitchÖÐʹÓÃString
¶þ½øÖÆÎÄ×Ö
¼ò»¯µÄ¿É±ä²ÎÊý·½·¨µ÷ÓÃ
Java7»¹ÓкܶàÆäËûµÄÐÂÌØÐÔ£¬Î ......
javaÖÐËùÓж¼ÊÇunicodeµÄ±àÂ룬¿ÖÅ´ó¼Ò¶¼Çå³þ£¬µ«ÊÇÕâ¾ßÌåÊÇÄÄÀïµÄ±àÂë¡£ÔÚһ̨ÖÐÎÄwindows²Ù×÷ϵͳ£¨GBK£©£¬»òÓ¢ÎĵÄlinux²Ù×÷ϵͳÏ£¨ISO-8859-1£©Ï£¬ÕâЩ±àÂëÊÇÈçºÎת»»µÄ¡£JAVAÖеÄStringÀàµÄgetBytes()·½·¨ºÍStringÀàµÄÖ¸¶¨±àÂ뷽ʽµÄ¹¹Ô캯ÊýÖеıàÂëÓÖÊÇÈçºÎÄØ£¿
ÕâÀïÎÒ²»×öÉîÈë½âÊÍ£¬Ö»ÊÇչʾһÏÂÕâЩ±àÂë ......
javaÖеľ²Ì¬´úÀíÓ붯̬´úÀí
±¾À´´òËã½ñÌìдµãjpa·½ÃæµÄ¶«Î÷£¬½á¹û¸ãÉÏÁË´úÀí£¬Ë÷ÐԾͰÑÑо¿³É¹û·Å³öÀ´°É£¬javaÖеĴúÀíÓÐÁ½ÖÖÒ»ÖÖÊǾ²Ì¬´úÀíÒ»ÖÖÊǶ¯Ì¬´úÀí£¬¾²Ì¬´úÀíÆäʵºÜÈÝÒ×Àí½â£¬¾²Ì¬´úÀíÆäʵ¾ÍÊǸö×°ÊÎÆ÷¶øÒÑ£¬¶ø¶¯Ì¬´úÀíÔò½èÖúÓÚjvmµÄÖ§³Ö£¬ÔÚÔËÐÐʱ¶¯Ì¬Éú³É´úÀíÀà¡£
ÔÚÕ ......