Java³ÌÐòÔ±µ½¼Ü¹¹Ê¦µÄÍƼöÔĶÁÊé¼®
ÉùÃ÷£º±¾ÎIJ¢·Ç±¾ÈËËùд£¬ÊÇÍøÉÏ¿´µ½µÄ£¬µ«ÊǸÃÎÄûÓбêÃ÷³ö´¦£¬ËùÒÔ±¾ÈËÒ²²»ÖªµÀ
×÷ΪJava³ÌÐòÔ±À´Ëµ£¬×îÍ´¿àµÄÊÂÇéĪ¹ýÓÚ¿ÉÒÔÑ¡ÔñµÄ·¶Î§Ì«¹ã£¬¿ÉÒÔ¶ÁµÄÊéÌ«¶à£¬ÍùÍùÈÝÒ×ÎÞËùÊÊ´Ó¡£ÎÒÏë¾ÍÎÒ×Ô¼º¶Á¹ýµÄ¼¼ÊõÊé¼®ÖÐÌôÑ¡³öÀ´Ò»Ð©£¬°´ÕÕѧϰµÄÏȺó˳Ðò£¬ÍƼö¸ø´ó¼Ò£¬ÌرðÊÇÄÇЩÏë²»¶ÏÌá¸ß×Ô¼º¼¼ÊõˮƽµÄJava³ÌÐòÔ±ÃÇ¡£
Ò»¡¢Java±à³ÌÈëÃÅÀà
¶ÔÓÚûÓÐJava±à³Ì¾ÑéµÄ³ÌÐòÔ±ÒªÈëÃÅ£¬Ëæ±ã¶ÁʲôÈëÃÅÊé¼®¶¼Ò»Ñù£¬Õâ¸ö½×¶ÎÐèÒªÄã¿ìËÙµÄÕÆÎÕJava»ù´¡Óï·¨ºÍ»ù±¾Ó÷¨£¬×ÚÖ¼¾ÍÊÇ“àñàðÍÌÔæ²»ÇóÉõ½â”£¬ÏȶÔJavaÊìϤÆðÀ´ÔÙ˵¡£Óú̵ܶÄʱ¼ä¿ìËÙ¹ýÒ»±éJavaÓï·¨£¬Á¬ã´ø²Â¶àдд´úÂ룬Ҫ“ÖªÆäÈ»”¡£
1¡¢¡¶Java±à³Ì˼Ïë¡·
ÔÚÓÐÁËÒ»¶¨µÄJava±à³Ì¾ÑéÖ®ºó£¬ÄãÐèÒª“ÖªÆäËùÒÔÈ»”ÁË¡£Õâ¸öʱºò¡¶Java±à³Ì˼Ïë¡·ÊÇÒ»±¾ÈÃÄãÖªÆäËùÒÔÈ»µÄºÃÊ飬Ëü¶ÔÓÚ»ù±¾µÄÃæÏò¶ÔÏó֪ʶÓбȽÏÇå³þµÄ½»´ý£¬¶ÔJava»ù±¾Óï·¨£¬»ù±¾Àà¿âÓбȽÏÇå³þµÄ½²½â£¬¿ÉÒÔ°ïÄã´òÒ»¸öÁ¼ºÃµÄJava±à³Ì»ù´¡¡£Õâ±¾ÊéµÄȱµãÊÇʵÔÚÌ«ºñ£¬Ò²±È½ÏÂÞ࣬²»ÊʺÏÏÖ´úÈË¿ì½Ú×àѧϰ£¬Òò´Ë¿´Õâ±¾ÊéÒª¶®µÃÈ¡Éᣬ²»ÊÇÿÕÂÿ½Ú¶¼ÖµµÃÒ»¿´µÄ£¬ÌôÖصãµÄÉîÈë¿´¾Í¿ÉÒÔÁË¡£
2¡¢¡¶Agile Java¡·ÖÐÎÄ°æ
Õâ±¾ÊéÊdzö°æÉçË͸øÎҵģ¬ÎÒÒ»Äõ½¾ÍÊøÖ®¸ß¸ó£¬·ÅÔÚÊé¹ñÒ»Ò³¶¼Ã»Óз¹ý£¬µ«ÊÇÇ°Á½ÌìÕûÀíÊé¹ñµÄʱºò£¬ÄóöÀ´Ò»·£¬¾¹È»·¢ÏÖÕâ¾ø¶ÔÊÇÒ»±¾ºÃÊ飡Õâ±¾ÊéÒ»´óÌصãÊÇÒÔµ¥Ôª²âÊÔºÍTDDÀ´¹á´©È«ÊéµÄ£¬ÔÚ½ÌÄãJava¸÷ÖÖÖØÒªµÄ»ù´¡ÖªÊ¶µÄ¹ý³ÌÖУ¬Ç±ÒÆĬ»¯µÄÓ°ÏìÄãµÄ±à³Ì˼ά×ßÏòÃô½Ý£¬×ßÏòTDD¡£ÁíÍâÕâ±¾Êé³ÉÊéºÜУ¬ÒÔJDK5.0µÄÓ﷨Ϊ»ù´¡½²½â£¬ÒªÑ§Ï°JDK5.0µÄÐÂÓï·¨Ò²²»´í¡£»¹ÓÐÕâ±¾Êé¶ÔÓÚÄÚÈÝÈ¡ÉáÒ²·Ç³£µÃµ±£¬JavaÓïÑԱϾ¹Àà¿âÅӴ󣬿ÉÒÔ½²µÄÄÚÈÝÌ«¶à£¬Õâ±¾ÊéÑ¡ÔñµÄÄÚÈÝÒÔ¼°ÄÚÈݵĶà¹Ñ¶¼ºÜµÃµ±£¬¿ÉÒÔÈÃÄãÒÔ×îÉÙµÄʱ¼äÕÆÎÕJava×îÖØÒªµÄ֪ʶ£¬Ë³±ãÅàÑø³öÀ´ÓÅÐãµÄ±à³Ì˼·£¬ÕæÊÇÒ»±¾²»¿É¶àµÃµÄºÃÊé¡£
ËäÈ»×÷Õß×Ô¼º°ÑÕâ±¾Ê鶨λÔÚÈëÃż¶±ð£¬µ«ÎÒ²»È·¶¨Õâ±¾ÊéÓÃÀ´ÈëÃÅÊDz»ÊÇÉÔ΢ÉîÁ˵㣬ÎÒ×Ô¼ºÒ²×¼±¸ÓпյÄʱºò··Õâ±¾Ê飬ѧϰѧϰ¡£
¶þ¡¢Java±à³Ì½ø½×Àà
´òÏÂÒ»¸öÁ¼ºÃµÄJava»ù´¡£¬»¹ÐèÒª¸ü¶àµÄʵ¼ù¾Ñé»ýÀÛ£¬ÎÒÏëûÓÐʲô½Ý¾¶¡£ÓÐÁ½±¾ÊéÖµµÃÄãÔÚ±à³ÌÉúÑĵÄÕâ¸ö½×¶ÎÔĶÁ£¬ÅàÑøÁ¼ºÃµÄ±à³ÌÏ°¹ß£¬Ìá¸ßÄãµÄ´úÂëÖÊÁ¿¡£
1¡¢¡¶Öع¹ ¸ÄÉƼÈÓдúÂëµÄÉè¼Æ¡·
Õâ±¾ÊéÃûÆøºÜ´ó£¬²»Óöà½éÉÜ£¬¿ÉÒÔÔÚÏÐϾµÄʱºò¶à··£¬¶àºÍ×Ô¼ºµÄʵ¼ùÏ໥ӡ֤¡£Õâ±¾Êé¶ÔÄã²úÉúÓ°ÏìÊÇDZÒÆĬ»¯µÄ¡£
2¡¢¡¶²âÊÔÇý¶¯¿ª·¢ by Example¡
Ïà¹ØÎĵµ£º
JavaµÄÊý¾Ý½á¹¹ÓÐÄÄЩ£¿MapÓëSetµÄ±¾ÖÊÇø±ðÊÇʲô£¿
·ÖÎö£ºJava³£¼ûµÄÊý¾Ý½á¹¹ÓÐCollectionºÍMap£¬ÆäÖÐCollection½Ó¿ÚÏ°üÀ¨ListºÍSet½Ó¿Ú£¬ÆäÏÂÓÖÓжà¸öʵÏÖÀàÈçListÏÂÓÐArrayList¡¢LinkedListºÍVectorµÈʵÏÖÀ࣬SetÏÂÓÐHashSet¡¢LinkedSetµÈʵÏÖÀàºÍSortedSet½Ó¿Ú£¬HashSetÏÂÓÐLinkedHashSet×ÓÀ࣬SortedSet½Ó¿ÚÏÂÓÐTre ......
public class Test{
public static void main(String args[]){
System.out.println("This is a test program.");
}
}
½«ÉÏÃæµÄÕâ¶Î³ÌÐò±£´æΪÎļþÃûΪTest.javaµÄÎļþ¡£
È»ºó´ò¿ªÃüÁîÌáʾ·û´°¿Ú£¬cdµ½ÄãµÄTest.javaËùÔÚĿ¼£¬È»ºó¼üÈëÏÂÃæµÄÃüÁî
javac Test.java
³ö´í:
Àà Test Êǹ«¹²µÄ£¬Ó¦ ......
1.н¨Ò»¸öservlet³ÌÐò£¬ÎļþÃûΪTest.java£¬ÎļþÄÚÈÝÈçÏ£º
package test;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServle ......
ÈçºÎÓÃJava»ñµÃÒ»¸öÓòÃûµÄIPµØÖ·ÄØ£¿ÌṩÕâ¸ö¹¦ÄܵÄÀà½Ð×öjava.net.InetAddress¡£ÎÒÃǼÙÉèÏÖÔÚÓÐÕâÑùÒ»¸öÓòÃû£¬ËüÓÃÒ»¸ö¾²Ì¬µÄ
getByNameÀ´ÖØлñµÃÒ»¸öInetAddress£¬È»ºóµÃµ½¿ÉÒÔ¶Á³öµÄIPµØÖ·¡£ÏÂÃæµÄ´úÂëÊǷdz£»ù±¾µÄÃüÁîÐС£
import java.net.InetAddress;
import java.net.Unknow ......
¼×¹ÇÎÄÒѾÍê³ÉÁ˶ÔSUN¹«Ë¾µÄÊÕ¹º£¬ÓÚ1ÔÂ27ÈÕ·¢²¼Á˶ÔSun¸÷ÏîÒµÎñµÄÕûºÏ¹æ»®¡£×ÜÌåÉÏ˵£¬OracleÒª³ÉΪÈíÓ²¼þÒ»Ì廯µÄÕûÌå½â¾ö·½°¸µÄ³§ÉÌ¡£ ÒÔϾÍÆä¶Ô±¸ÊܹØ×¢µÄJava·½ÃæµÄ²ßÂÔ×ö¸ö½éÉÜ¡£
Java SE:
1£©ÍƳöJDK SE 7£¬ Ëü½«°üÀ¨¶à¸öÐµĹ¦ÄÜ£¬ÈçÌá¸ß¿ª·¢ÈËÔ±µÄЧÂÊ£¬Ìṩ¸ßÐÔÄÜ£¬¶Ô¶àºËоƬµÄÖ§³ÖµÈ¡£
2£©SunµÄ ......