java & ģʽ
³éÏ󻯺ͼ̳йØϵʹ¸ÅÄîºÍ¶¨Òå¿ÉÒÔ¸´Ó㻶à̬ÐÔʹʵÏÖºÍÓ¦ÓÿÉÒÔ¸´Óã»
¿ª±ÕÔÔò£¨Open-Closed Principle OCP£©Ò»¸öÈí¼þʵÌåÓ¦µ±¶ÔÀ©Õ¹¿ª·Å£¬¶ÔÐ޸ķâ±Õ¡£
¶Ô¿É±äÐԵķâ×°ÔÔò£¨Principle of Encapsulation of Variation£© (1)Ò»Öֱ仯ÐÔ²»ºÍÁíÒ»ÖÖ»ìºÏÔÚÒ»Æ𠣨2£©Ò»ÖֿɱäÐÔ²»Ó¦É¢ÂäÔÚ´úÂëµÄºÜ¶àµØ·½¡£
ÀïÊÏ´ú»»ÔÔò£¨Liskov Substitution Principle£©£ºÈκλùÀà³öÏֵĵط½£¬×ÓÀàÒ»¶¨¿ÉÒÔ³öÏÖ¡£
ÒÀÀµµ¹×ªÔÔò£¨Dependence Inversion£©£ºÒªÒÀÀµÓÚ³éÏ󣬲»ÒªÒÀÀµÓÚʵÏÖ¡£
×éºÏ/¾ÛºÏ¸´ÓÃÔÔò£¨ Composite/Aggregate Reuse Principle£©£º¾¡¿ÉÄÜʹÓÃ×éºÏ/¾ÛºÏ£¬¶ø²»ÊǼ̳йØϵ¡£
µÏÃ×ÌØ·¨Ôò£ºÒ»¸öÈí¼þʵÌåÓ¦¾¡¿ÉÄÜÉٵغÍÆäËûÈí¼þʵÌå·¢Éú¹Øϵ¡£
½Ó¿Ú¸ôÀëÔÔò£¨Interface Segregation Principle£©£ºÏò¿Í»§¶ËÌṩ¾¡¿ÉÄÜСµÄ¶ÀÁ¢µÄ½Ó¿Ú£¬¶ø²»ÊÇ´óµÄ×ܽӿڡ£
CoadÔÔò£¬Ê²Ã´Ê±ºòʹÓü̳и´Óã¿
£¨1£©×ÓÀàÊdz¬ÀàµÄÒ»¸öÌØÊâÖÖÀ࣬²»Êdz¬ÀàµÄÒ»¸ö½ÇÉ«£¬Çø·ÖIs-a£¬Has-a
£¨2£©×ÓÀàÀ©Õ¹³¬ÀàÖ°Ô𣬶ø²»ÊÇ»»µô¡£
£¨3£©ÓÀÔ¶²»»á³öÏÖÐèÒª½«×ÓÀà»»³ÉÁíÒ»¸öÀàµÄ×ÓÀàµÄÇé¿ö¡£
£¨4£©Ö»Ó÷ÖÀàѧÉÏÓÐÒâÒåʱ£¬²ÅʹÓü̳У¬²»Òª´Ó¹¤¾ßÀà¼Ì³Ð¡£
¼¸¸ö¹¤³§Ä£Ê½½â¾ö¶ÔÏó´´½¨¹ý³ÌÖеÄÒÀÀµµ¹×ªÔÔò¡£
Ïà¹ØÎĵµ£º
HTTP(Hyper-Text Transfer Protocol)Êǵ±Ç°ÒòÌØÍøÉÏʹÓÃ×î¶àµÄÐÒé¡£ÍøÂç·þÎñ£¬ÍøÂçÉ豸ÒÔ¼°ÍøÂç¼ÆËãµÄÔö³¤²»½öÔö¼ÓÁËÐèÒªHTTPÖ§³ÖµÄµÄÓ¦ÓóÌÐò£¬»¹À©Õ¹ÁËHTTPµÄ½ÇÉ«£¬Ê¹Æä²»½ö½öÓ¦ÓÃÓÚÓû§Çý¶¯µÄwebä¯ÀÀÆ÷¡£ java.net°üÌṩͨ¹ýHTTP·ÃÎÊ×ÊÔ´µÄ»ù±¾¹¦ÄÜ¡£HttpClientÉ跨ͨ¹ýʵÏÖÒ»¸ö¸ßЧµÄ£¬×îеģ¬¹¦ÄܷḻµÄHttp¿Í»§¶ËÀ ......
java exception ½â¾ö·½°¸ - ÎÒµÄÒì³£Íø|Òì³£|exception|myexception 831 - ActionMessages 832 - could not instantiate id generator 833 - javax.servlet.jsp.JspException 834 - javax.naming.NoInitialContextException 835 - net.sf.hibernate.HibernateException 836 - org.hibernate.exception.GenericJDBCExceptio ......
¡¡¡¡1¡¢JDK £¨Java Development Kit£© ¡¡¡¡SUNµÄJava²»½öÌáÁËÒ»¸ö·á¸»µÄÓïÑÔºÍÔËÐл·¾³£¬¶øÇÒ»¹ÌáÁËÒ»¸öÃâ·ÑµÄJava¿ª·¢¹¤¾ß¼¯(JDK)¡£¿ª·¢ÈËÔ±ºÍ×îÖÕÓû§¿ÉÒÔÀûÓÃÕâ¸ö¹¤¾ßÀ´¿ª·¢java³ÌÐò¡£ ¡¡¡¡JDK¼òµ¥Ò×ѧ£¬¿ÉÒÔͨ¹ýÈκÎÎı¾±à¼Æ÷£¨È磺Windows ¼Çʱ¾¡¢UltrEdit¡¢Editplus¡¢FrontPageÒÔ¼°dreamweaverµÈ£©±àдJavaÔ´Îļþ£¬ ......
ÏÈ¿´Ò»¶Î´úÂë
public class Hello{
public static void main(String[] args){
int i = 5 , j = 2;
System.out.println(i+j);
System.out.println(i-j);
& ......
2009Äê9Ô³ö°æµÄ¡£Í¬ÊÇ¡¶Èí¼þ¿ª·¢¿ÎÌá·ÏµÁС£±¾ÈËÔÚ±¾ÊéÖбàдµÄÕ½ÚΪ£º
µÚ12Õ£º¶àÏß³Ì
µÚ13Õ£ºIOÁ÷
µÚ15Õ£º·´Éä
µÚ16Õ£º×¢½â
µÚ19Õ£ºÍøÂç±à³Ì
µÚ20Õ£ºÏîĿʵÀýÖ®ÍøÂç°æQQ
ͼÊé·âÃ棺
¹ºÂòÁ´½Ó£ºhttp://www.china-pub.com/195979&ref=ps ......