Å̵ã2009£ºJava´óʼÇ
±àÕß°´£º¶ÔJavaÉçÇøÀ´Ëµ,2009ÄêÊÇÒ»¸ö¶àÊÂÖ®Ä꣺OracleµÄÊÕ¹º´øÀ´Ï£Íûµ«¸ü¶àµÄÊǵ£ÓÇ£»¶ÔJava7µÄ½¹¼±µÈ´ý£»¶ÔÊÇ·ñÐèÒª±Õ°üµÄ³Ö
ÐøÕùÒ飻ÆäËûÊÕ¹º¶Ô¿ªÔ´ÉçÇøµÄÓ°Ïì±¾ÎÄÔ×÷ÕßJames SugrueÁªºÏJavaÉçÇøµÄÆäËûÈýλºËÐÄ¿ª·¢Õ߶Ô2009ÄêµÄJava½øÐÐÁËÅ̵㡣
James SugrueÊÇJavaLobbyºÍEclipseZoneµÄ±à¼£¬Ò»Î»Eclipse¿ª·¢Õߣ¬JavaÉçÇøµÄ»îÔ¾·Ý×Ó¡£
1)OracleºÍSun
×î³õÎÒÃÇÒÔΪIBM»áÊÕ¹ºSun£¬È»ºóOracle˦¶¯×Å´ó°Ñ֧Ʊ³öÏÖÁË¡£ËäÈ»Larry Ellison±£Ö¤½«ÔÚJavaOneÉÏÖ§³ÖJavaƽ̨£¬µ«·í´ÌµÄÊÇ£¬¹ØÓÚJavaOne 2010²»»á¾Ù°ìÈ¡¶ø´úÖ®µÄÊÇOracle OpenWorldµÄÒ¥ÑÔÉõÏù³¾ÉÏ
2)JavaÒÀȻǿÊÆ
¾¡¹ÜÉçÇøÀï³öÏÖÁ˺ܶà¹ØÓÚJavaË¥Âä»òÃðÍöµÄÎÄÕ£¬µ«ÎÞ¿ÉÕùÒéµÄÊÂʵÊÇJavaÔÚÐÐÒµÄÚÒÀȻһÈç¼ÈÍùµØÁ÷ÐУ¬Ðí¶à¹«Ë¾ÈÔ³ÖÐøÏòJavaͶ×Ê£¬Î´¼û
Ë¥ÂäÖ®ÊÆ¡£¶øÇÒ¾¡¹Ü´æÔÚÈ«ÇòÐԵľ¼ÃΣ»ú£¬µ«ÎÞÂÛÊÇJava»¹ÊÇITÁìÓòµÄÊÕ¹º¶¼ÏÔ³ö·´µ¯Ö®ÊÆ¡£²»¹ÜOracleµÄÊÕ¹º´øÀ´ÔõÑùµÄ½á¹û£¬JavaÉçÇø¶¼¸Ò
±£Ö¤JavaÓïÑÔºÍƽ̨µÄ¼ÌÐø³É¹¦¡£
3)ÊÕ¹ºÖ®Äê
³ýÁËOracleºÍSunµÄ¹ÊÊ£¬SpringSourceµÄһϵÁоٶ¯ÔÚGroovyÉçÇø±íÏÖµÃÒ²ºÜ»îÔ¾£ºÊÕ¹ºGroovyºÍGrails¼¼ÊõµÄ
Ä»ºó¹«Ë¾G2One£¬ÊÕ¹ºÏµÍ³¹ÜÀíÈí¼þ³§ÉÌHyperic£¬ËæºóSpringSourceÓÖ±»VMWareÊÕ¹º£¬ÔÚÐéÄâÊг¡È¡µÃÁ¢×ãµã¡£
ÁíÍ⣬TerracottaÊÕ¹ºÁËQuartzºÍehCache¿ªÔ´¿ò¼Ü¡£ËùÓÐÕâЩ¶¼ÊÇ»ý¼«µÄ£¬±íÕ÷×ÅÎÞÂÛÊÇ¿ªÔ´»¹ÊÇÉÌÒµJava¶¼¸ü¼Ó³ÉÊìÁË£¬¶øÇÒÖ¤Ã÷¿ªÔ´»ñµÃÁËÉÌÒµÀûÈó¡£
Alex MillerÊÇTerracotta IncµÄ¸ß¼¶¹¤³Ìʦ£¬¿ªÔ´µÄJavaȺ¼¯²úÆ·TerracottaµÄ¿ª·¢Õß¡£ÔçÏÈËûÔø¹¤×÷ÓÚBEA SystemsÊÇMetaMatrixµÄÊ×ϯ¼Ü¹¹Ê¦¡£
1)OracleºÍSun¡£
Õâ¶ÔJavaÁìÓòµÄÈκÎÒ»¸ö·½Ã涼²úÉúÁ˾޴óµÄÓ°Ïì¡£Ô¤¼ÆÕâÆðÊÕ¹º½«ÔÚ2010ÄêÒÔOracleÔÚijЩ·½Ãæ×ö³öÈò½¶øÍê³É¡£
2£¬¿ªÔ´ÉÌÒµ
SpringSourceÊÕ¹ºG2OneºÍHyperic£¬VMWareÊÕ¹ºSpringSource£¬IntalioÊÕ¹ºWebtide£¬TerracottaÊÕ¹ºEhcacheºÍQuartz¡£Ô¤¼Æ2010ÄêÀàËƵľٶ¯»á¸ü¶à£¬ÓÈÆäÊÇÔÚÔƼÆËãÁìÓò¡£
3)£¬Java 7£º
Ò»ÄêÇ°ÎÒÃÇÖ»Êǵ¥´¿µØÆÚ´ýJDK 7Öн«ÓÐÄÄЩÐÂÐÔÄÜ£¬±ÈÈçJava 7ȱÉÙÒ»¸öJSR£¬»¹ÓйØÓÚ±Õ°üµÄÕùÂÛ¡£µ«ÏÖÔÚÇé¿öÓÉÓÚOracleµÄ½éÈë¶ø±äµÃ¸ü¼Ó¸´ÔÓÁË£¬ÎÒÏëÖ±µ½OracleµÄÊÕ¹º³¾°£Â䶨£¬Java 7µÄ¿ª·¢²Å»áÕæÕýÏòÇ°Âõ³öÒ»²½¡£
4)£¬JVMÓïÑÔ
¾¡¹ÜJavaÓïÑÔȺÁúÎÞÖ÷£¬µ«ÁíÍâһЩÖ÷ÒªµÄJVMÓïÑÔÈ´ÔÚ2009ÄêÈ¡µÃÁ˲»Ð¡µÄ½ø²½¡£Groovy, Scala,
ClojureºÍJRubyµÈÓïÑÔÔÚÒ»ÄêÇ°»¹Ö»ÊǸö³û¶ù£¬ÏÖÔÚÈ´¼¸ºõÎÞ´¦²»ÔÚ£¬¾¡¹Ü±È½ÏÆðJavaËüÃǵÄÓ
Ïà¹ØÎĵµ£º
½ü³õ²½½Ó´¥ÁËÏÂJava¼ÓÃܺÍÊý×ÖÇ©ÃûµÄÏà¹ØÄÚÈÝ£¬ÎÒѧϰµÄ¹ý³Ì´ó¸Å·ÖÎå²½£º
1£©ÏûÏ¢ÕªÒª
2£©Ë½Ô¿¼ÓÃÜ
3£©¹«Ô¿¼ÓÃÜ
4£©Êý×ÖÇ©Ãû
5) Êý×ÖÖ¤Êé
ÏÂÃæµÄ´úÂëÊǵڶþ²¿·Ö£ºË½Ô¿¼ÓÃÜ
Ï£ÍûÄÜΪ¸Õ¸Õ½Ó´¥Õâ¸öµÄÅóÓÑÃÇÊ¡µãÊÂ
package security;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import ......
import java.util.Date;
import java.text.SimpleDateFormat; //ΪÁËÏÔʾʱ¼ä¶ø¼Ó
Date date = new Date(); //»ñµÃϵͳʱ¼ä.
String nowTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date);
//½«Ê±¼ä¸ñʽת»»³É·ûºÏTimestampÒªÇóµÄ¸ ......
ÓÃJSP¹¹½¨¶¯Ì¬ÍøÕ¾ ËïÒÔÒå ¶Å¾é
Ò»¡¢ ʲôÊÇJSP JSP(JavaServer Pages)ÊÇÓÉSun Microsystems¹«Ë¾³«µ¼¡¢Ðí¶à¹«Ë¾²ÎÓëÒ»Æð½¨Á¢µÄÒ»ÖÖ¶¯Ì¬ÍøÒ³¼¼Êõ±ê×¼£¬ÆäÍøַΪ
http://www.javasoft.com/products/jsp¡£ ÔÚ´«Í³µÄÍøÒ³HTMLÎļþ(*.htm,*.html)ÖмÓÈëJava³ÌÐòƬ¶Î(Scriptlet)ºÍJSP±ê¼Ç(tag)£¬¾Í¹¹
³ÉÁËJSPÍøÒ³(*.jsp)¡£Web· ......
ÈçºÎÍ£Ö¹javaµÄÏß³ÌÒ»Ö±ÊÇÒ»¸öÀ§ÄÕÎÒÃÇ¿ª·¢¶àÏ̳߳ÌÐòµÄÒ»¸öÎÊÌâ¡£Õâ¸öÎÊÌâ×îÖÕÔÚJava5µÄjava.util.concurrentÖеõ½Á˻شð£ºÊ¹ÓÃinterrupt()£¬ÈÃÏß³ÌÔÚrun·½·¨ÖÐÍ£Ö¹¡£ ¼ò½é ÔÚJavaµÄ¶àÏ̱߳à³ÌÖУ¬java.lang.ThreadÀàÐÍ°üº¬ÁËһЩÁеķ½·¨start(), stop(), stop(Throwable) and suspend(), destroy() and resume()¡£Í¨¹ ......