Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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£©Ö»Ó÷ÖÀàѧÉÏÓÐÒâÒåʱ£¬²ÅʹÓü̳У¬²»Òª´Ó¹¤¾ßÀà¼Ì³Ð¡£
¼¸¸ö¹¤³§Ä£Ê½½â¾ö¶ÔÏó´´½¨¹ý³ÌÖеÄÒÀÀµµ¹×ªÔ­Ôò¡£


Ïà¹ØÎĵµ£º

java httpclient£¨1£©

HTTP(Hyper-Text Transfer Protocol)Êǵ±Ç°ÒòÌØÍøÉÏʹÓÃ×î¶àµÄЭÒé¡£ÍøÂç·þÎñ£¬ÍøÂçÉ豸ÒÔ¼°ÍøÂç¼ÆËãµÄÔö³¤²»½öÔö¼ÓÁËÐèÒªHTTPÖ§³ÖµÄµÄÓ¦ÓóÌÐò£¬»¹À©Õ¹ÁËHTTPµÄ½ÇÉ«£¬Ê¹Æä²»½ö½öÓ¦ÓÃÓÚÓû§Çý¶¯µÄwebä¯ÀÀÆ÷¡£ java.net°üÌṩͨ¹ýHTTP·ÃÎÊ×ÊÔ´µÄ»ù±¾¹¦ÄÜ¡£HttpClientÉ跨ͨ¹ýʵÏÖÒ»¸ö¸ßЧµÄ£¬×îеģ¬¹¦ÄܷḻµÄHttp¿Í»§¶ËÀ ......

java exception javaÒì³£»ã×Ü2009

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 ......

Ê®ËÄÖÖJava¿ª·¢¹¤¾ßµãÆÀ

¡¡¡¡1¡¢JDK £¨Java Development Kit£© ¡¡¡¡SUNµÄJava²»½öÌáÁËÒ»¸ö·á¸»µÄÓïÑÔºÍÔËÐл·¾³£¬¶øÇÒ»¹ÌáÁËÒ»¸öÃâ·ÑµÄJava¿ª·¢¹¤¾ß¼¯(JDK)¡£¿ª·¢ÈËÔ±ºÍ×îÖÕÓû§¿ÉÒÔÀûÓÃÕâ¸ö¹¤¾ßÀ´¿ª·¢java³ÌÐò¡£ ¡¡¡¡JDK¼òµ¥Ò×ѧ£¬¿ÉÒÔͨ¹ýÈκÎÎı¾±à¼­Æ÷£¨È磺Windows ¼Çʱ¾¡¢UltrEdit¡¢Editplus¡¢FrontPageÒÔ¼°dreamweaverµÈ£©±àдJavaÔ´Îļþ£¬ ......

JAVA»ù´¡ÈëÃÅ: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);
     & ......

Ô­´´Í¼Ê顶Java»ù´¡Óë°¸ÀýÏê½â¡·

 2009Äê9Ô³ö°æµÄ¡£Í¬ÊÇ¡¶Èí¼þ¿ª·¢¿ÎÌá·ÏµÁС£±¾ÈËÔÚ±¾ÊéÖбàдµÄÕ½ÚΪ£º
µÚ12Õ£º¶àÏß³Ì
µÚ13Õ£ºIOÁ÷
µÚ15Õ£º·´Éä
µÚ16Õ£º×¢½â
µÚ19Õ£ºÍøÂç±à³Ì
µÚ20Õ£ºÏîĿʵÀýÖ®ÍøÂç°æQQ
ͼÊé·âÃ棺
¹ºÂòÁ´½Ó£ºhttp://www.china-pub.com/195979&ref=ps ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ