java±¾¼Í
JavaÐéÄâ»úµÄÆðÔ´Óë¹¹Ôì
µ±ÎÒÃÇ˵µ½“Java”Õâ¸ö´ÊµÄʱºò£¬Ö¸µÄÊÇËĸöÏ໥¹ØÁªµÄ¸ÅÄJavaÓïÑÔ¡¢Java API¡¢Java ClassÎļþ¸ñʽ¡¢JavaÐéÄâ»ú¡£Õû¸öJavaÌåϵÊÇ»ùÓÚJava ÐéÄâ»ú¹¹ÔìµÄ£¬ÕýÒòΪÈç´Ë£¬²ÅÄÜʵÏÖJavaµÄ°²È«ÐÔºÍÍøÂçÒƶ¯ÐÔ¡£Java²¢·ÇÊǵÚÒ»¸ö²ÉÓÓÐéÄâ»ú”¸ÅÄîµÄÌåϵ£¬µ«È´ÊǵÚÒ»¸öµÃµ½¹ã·ºÔËÓõÄÐéÄâ»úƽ̨¡£ “ÐéÄ┣¬ÊÇÒ»ÖÖ¸ôÀëÎïÀí×ÊÔ´ÓëÂß¼×ÊÔ´µÄÊֶΡ£JavaÐéÄâ»úµÄ“ÐéÄ┣¬ÔòÊÇÓÃÀ´¸ôÀëÎïÀí»úÆ÷¡¢µ×²ã²Ù×÷ϵͳÓëJavaÓïÑԹ淶ʵÏÖµÄÊֶΡ£
ËäÈ»JavaÊÇÒ»ÖÖÃæÏò¶ÔÏóµÄÓïÑÔ£¬ÎÒÃÇƽʱ´óÁ¿Ê¹Óõģ¬ÊǶÔÏó¼äµÄ¶à̬¡¢×éºÏ(Composition)¡¢Î¯ÅÉ£¨Delegation£©,µ«µ±ÎÒÃÇÌÖÂÛÐéÄâ»úµÄʱºò£¬ÎÒÃÇ¿´¼ûµÄ»ù±¾¸ÅÄîÈ´ÊÇ“Õ»(Stack)”ºÍ“¶Ñ(Heap)”¡£¸ù¾Ý·ëŵÒÀÂüµÄ“´æ´¢¼ÆËã”Ä£ÐÍ£¬ËùÓеĴúÂ붼±£´æÔÚ´úÂë¿Õ¼äÖУ¬Ëæ×ųÌÐò¼ÆÊýÆ÷Ö¸ÕëµÄ±ä»¯½øÐгÌÐòµÄÖ´ÐС¢Ìøת¡£JavaÐéÄâ»úÖÐûÓмĴæÆ÷µÄ¸ÅÄ·½·¨µ÷ÓÃÊDzÉÓÓջ”½øÐеģ¬ÕâÊÇÒ»ÖÖ°²È«¡¢¼ò½àµÄ·½·¨¡£
JavaÐéÄâ»úͨ¹ýÀà×°ÔØÆ÷Ö§³Ö¶ÔÀàµÄ¸ôÀ룬ÕâÒ²ÊÇJavaʵÏÖ°²È«ÐԵĻù´¡¡£Ã¿¸öÀ඼¾ßÓÐ×Ô¼ºµÄÃüÃû¿Õ¼ä£¬ÔÚ¾ßÓв»Í¬°²È«¼¶±ðµÄɳÏäÖÐÔËÐУ¬Òò´Ë²»»á²úÉúµÍ°²È«¼¶±ðµÄ´úÂëÀ´Ô½È¨·ÃÎʸ߼¶±ð´úÂëµÄ»ú»á¡£Àà×°ÔØÆ÷µÄ³öÏÖÊÇJavaÐéÄâ»úÓë´ó²¿·ÖÓÃCʵÏÖµÄÐéÄâ»úµÄÏÔÖø²»Í¬Ö®´¦¡£
JavaÐéÄâ»úµÄÁíÍâÒ»¸öÏÔÖøÌصã¾ÍÊÇʵÏÖÁË×Ô¶¯µÄÀ¬»øÊÕ¼¯¡£ÔÚÍù³££¬Ð´³ÌÐòµÄʱºòÒªÀμǶÔÏóÖ®¼äµÄ¹ØÁª£¬ÔÚÿ¸ö³ÌÐò¿éÖмÙÈôÉêÇëÁ˶ÔÏó¿Õ¼ä£¬¾Í±ØÐëÔÚ³ö¿ÚÊͷŵô£¬·½·¨µ÷ÓÃÍùÍùͬʱҲ¾ÍÊǶÔÏóµÄ±ß½ç¡£¶ø×Ô¶¯À¬»øÊÕ¼¯´ø¸ø¿ª·¢ÕßµÄ×î´óºÃ´¦£¬¾ÍÊÇ¿ÉÒԷdz£·½±ãµØ´ÓÕûÌåÉÏ°ÑϵͳµÄ¶ÔÏó×éÖ¯³ÉÒ»ÕŶÔÏóͼ£¬Ö»ÐèÍùÕâÕÅͼÖÐÌí¼Ó¶ÔÏó£¬Î¬»¤¶ÔÏóÖ®¼äµÄ¹ØÁª£¬È´²»ÐèÒª×Ô¼º×ö¸´ÔÓµÄÇåɨ¹¤×÷¡£ÕýÊÇÓÐÁËÕâÖÖ˼άµ¥´¿µÄ¶ÔÏóͼµÄÖ§³Ö£¬OR Mapping(¹ØϵÊý¾Ý¿âÓë¶ÔÏóÓ³É䣩¼¼ÊõÔÚ×î½üµÃÒÔ´óÐÐÆäµÀ£¬Éè¼ÆģʽҲ¸üÈÝÒ×±»JavaȺÌåËù½ÓÊÜ¡£
ÐéÄâ»úµÄÓÅ»¯
1995ÄêµÚÒ»´úµÄJava³ǫ֮̈ʱ£¬ÆäÐéÄâ»úÖ´ÐÐÊÇÒÀ¿¿“×Ö½ÚÂë½âÊÍÆ÷£¨Byte Code Interceptor£©”µÄ£¬Ò²¾ÍÊÇ˵ÿÌõÖ¸ÁÓÉÐéÄâ»úÀ´µ±³¡½âÊÍÖ´ÐУ¬ÕâÔì³ÉËÙ¶ÈÁîÈË×¥¿ñµØ»ºÂý¡£¸üÓÐÉõÕßÓÐÈË¿ªÊ¼×ܽáÐí¶àµÄ“ËÙ¶ÈÓÅ»¯¾Ñ锣¬±ÈÈç˵£º“¾¡Á¿°ÑËùÓеĴúÂ붼·ÅÔڽϴóµÄ·½·¨ÖÐÖ´ÐДÓë“ÉÙÓýӿڔµÈµÈ£¬ÕâÍêÈ«ÓëJavaÓïÑÔµÄÉè¼ÆÄ¿µÄ±³µÀ¶ø³Û£¬ÏÖÔÚ¿´ÆðÀ´ÊǶàô¿ÉЦµÄÆæ̸
Ïà¹ØÎĵµ£º
×ܽáÒ»£º
Java IOµÄÒ»°ãʹÓÃÔÔò£º
Ò»¡¢°´Êý¾ÝÀ´Ô´£¨È¥Ïò£©·ÖÀࣺ
1¡¢ÊÇÎļþ£º FileInputStream, FileOutputStream, FileReader, FileWriter
2¡¢ÊÇbyte[]£ºByteArrayInputStream, ByteArrayOutputStream
3¡¢ÊÇChar[]: CharArrayReader, CharArrayWriter
4¡¢ÊÇString: StringBufferInputStream, StringReader, StringW ......
ÔÚ×öweb¿ª·¢µÄʱºò£¬¾³£ÐèÒªÔÚÒ»¶¨µÄʱ¼äÈ¥¸úÐÂijЩ¶«Î÷£¬»òÊǼÓÔØijЩ¶«Î÷£¬Õâ¾ÍÓõ½Á˶¨Ê±Æ÷¡£
µ±Web¹¤³ÌÆô¶¯Ê±£¬¶¨Ê±Æ÷ÄÜ×Ô¶¯¿ªÊ¼¼Æʱ£¬ÔÚÕû¸öWeb¹¤³ÌµÄÉúÃüÆÚÀ¶¨Ê±Æ÷ÿ¹ýÒ»¶Îʱ¼ä¾ÍÖ´ÐÐÒ»´Î£¬ËùÒÔ¿¼ÂǶ¨Ê±Æ÷´æ·ÅµÄλÖá£
¶¨Ê±Æ÷¿Ï¶¨²»Äܲ»Äܼòµ¥µÄ´æÔÚÓÚµ¥¸öServlet»òJavaBeanÖУ¬±ØÐëÄ ......
package test;
import java.io.File;
import org.jivesoftware.smack.Chat;
import org.jivesoftware.smack.ConnectionConfiguration;
import org.jivesoftware.smack.MessageListener;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack ......
JAVAÒì³£¿ÉÒÔ·ÖΪÈýÖÖ£º
1.checked Òì³£
±àÒëÆ÷±£Ö¤ËùÓеÄcheckedÒì³£¶¼»áµÃµ½´¦Àí£¬ÕâÑù¾Í¿ÉÒÔÔÚ±àÒëÆÚ¼ì²éÒì³£´¦Àí¡£Í¨³£×Ô¶¨ÒåµÄÒì³£Ó¦¸ÃΪ´ËÀàÐÍ
2.runtimeÒì³£
ÊÇJVMÔÚ³ÌÐòÔËÐÐÆÚ·¢ÏÖµÄÎÞЧ²Ù×÷£¬ÀýÈçNullPointerException
3.Errors
ÓÉJVM¼ì²âµ½µÄʧ°Ü²Ù×÷£¬ÀýÈçOutOfMe ......
Web¿ª·¢Öо³£Óõ½µÄһЩÃû´Ê£¬°´Í¬¹¦ÄÜÀàÐ͵ĽøÐзÖ×飺
1.±êÇ©£ºWebWork±êÇ©¡¢JSTL¡¢JSP±êÇ©
2.AOP À¹½ØÆ÷ ¹ýÂËÆ÷ ¼àÌýÆ÷ УÑéÆ÷
3.ÃæÏò½Ó¿Ú ÃæÏòÇÐÃæ ¿ØÖÆ·´×ª ÒÀÀµ×¢Èë
4.µ¥Ì¬Ä£Ê½ DAOģʽ ×°ÊÎģʽ
5.»º´æ£ºÊý¾Ý»º´æ ·þÎñÆ÷¶Ë»º´æ ¿Í»§¶Ë»º´æ
6.ORM EJB[ÈýÖÖBean]
7.JMS
8.MVC¿ª·¢Ä£Ê½
9.W ......