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

Ò»Ì×JAVA²âÊÔÌâ

(1)  ÓÃextends¹Ø¼ü×Ö´´½¨×Ô¼ºµÄÎ¥ÀýÀàMyException¡£ÎªÕâ¸öÀàдһ¸ö¹¹½¨Æ÷£¬ÁîÆä²ÉÓÃString²ÎÊý£¬²¢ËæͬString¾ä±ú°ÑËü±£´æµ½¶ÔÏóÄÚ¡£ÔÙдһ¸ömain()·½·¨£¬ÆäÖÐÁîÆäÔÚtry¿éÄÚÖÀ³öMyExceptionÀàµÄÒ»¸ö¶ÔÏó¡£ÔÚcatch´Ó¾äÄÚ²¶»ñÎ¥Àý£¬²¢´òÓ¡³ö×Ö´®²ÎÊý¡£Ìí¼ÓÒ»¸öfinally´Ó¾ä£¬²¢´òÓ¡Ò»ÌõÏûÏ¢£¬Ö¤Ã÷×Ô¼ºÕæÕýµ½´ïÄÇÀï¡£
 
 
(2)  ´´½¨Ò»¸öJavaTest3À࣬ʹÆä¿ÉÒÔ±»¿Ë¡¡£
 
 
(3)  ´´½¨³ÌÐòƬMyApplet.java£¬Ê¹ÆäÔÚ´°ÌåÖÐÏÔʾ×Ö·û´®Hello world¡£
 
 
(4)  ´ÓThread¼Ì³ÐÒ»¸öÀàMyThread£¬²¢£¨¹ýÔØ£©¸²¸Çrun()·½·¨¡£ÔÚrun()ÄÚ£¬´òÓ¡³öÒ»ÌõÏûÏ¢£¬È»ºóµ÷ÓÃsleep()¡£Öظ´Èý±éÕâЩ²Ù×÷£¬È»ºó´Órun()·µ»Ø¡£ÔÙÌí¼Ómain·½·¨£¬ÔÚÆäÖд´½¨Ò»¸öMyThread¶ÔÏ󣬲¢Æô¶¯Ï̡߳£
 
 
(5)  ÓÐÒ»JavaBean¡¡TJavaBean.javaÈçÏÂ
package com.ides;
public class TJavaBean{
        private String name;
        private int age;
        private int count; //¼Ç¼ÔÚͬһ»á»°Öб»·ÃÎʵĴÎÊý
        public TJavaBean(){
            name = “ides”;
            age = 5;
            count = 0;
        }
        public String getName(){
            return name;
        }
        public int getAge(){
            return age;
        }
        public int getCount(){
            return count;
        }
        public void setName(Str


Ïà¹ØÎĵµ£º

Ãô½Ý¿ª·¢Öбàд¸ßÖÊÁ¿Java´úÂë

Ãô½Ý¿ª·¢µÄÀíÄîÒѾ­Á÷ÐÐÁ˺ܳ¤µÄʱ¼ä£¬ÔÚÃô½Ý¿ª·¢ÖеĿª·¢µü´ú½×¶ÎÖУ¬ÎÒÃÇ¿ÉÒÔͨ¹ýÎå¸ö²½Ö裬À´ÓÐЧµÄÌá¸ßÕû¸öÏîÄ¿µÄ´úÂëÖÊÁ¿¡£
JavaÏîÄ¿¿ª·¢¹ý³ÌÖУ¬ÓÉÓÚ¿ª·¢ÈËÔ±µÄ¾­Ñé¡¢Java´úÂë±àдϰ¹ß£¬ÒÔ¼°È±·¦Í³Ò»µÄ±ê×¼ºÍ¹ÜÀíÁ÷³Ì£¬ÍùÍùµ¼ÖÂÕû¸öÏîÄ¿µÄ´úÂëÖÊÁ¿½Ï²î£¬ÄÑÓÚά
»¤£¬ÐèÒª½Ï´óµÄ²âÊÔͶÈëºÍÖÜÆÚµÈÎÊÌâ¡£ÕâЩÎÊÌâÔÚÒ»¸ ......

java HttpClient PostʵÀý

private void postMethod(String url) throws IOException
 {    
  url = "http://www.newsmth.net/bbslogin2.php";
  PostMethod postMethod = new PostMethod(url);
  // ÌîÈë¸÷¸ö±íµ¥ÓòµÄÖµ
  NameValuePair[] data = { new NameValuePair("id ......

Java IOÁ÷ѧϰ×ܽá


    Ò»¡¢IOÁ÷µÄÈýÖÖ·ÖÀ෽ʽ
           1.°´Á÷µÄ·½Ïò·ÖΪ£ºÊäÈëÁ÷ºÍÊä³öÁ÷
           2.°´Á÷µÄÊý¾Ýµ¥Î»²»Í¬·ÖΪ£º×Ö½ÚÁ÷ºÍ×Ö·ûÁ÷
          &n ......

Óà javaµ÷ÓÃoracle´æ´¢¹ý³Ì×ܽá

1¡¢Ê²Ã´ÊÇ´æ´¢¹ý³Ì¡£´æ´¢¹ý³ÌÊÇÊý¾Ý¿â·þÎñÆ÷¶ËµÄÒ»¶Î³ÌÐò£¬ËüÓÐÁ½ÖÖÀàÐÍ¡£Ò»ÖÖÀàËÆÓÚSELECT²éѯ£¬ÓÃÓÚ¼ìË÷Êý¾Ý£¬¼ìË÷µ½µÄÊý¾ÝÄܹ»ÒÔÊý¾Ý¼¯µÄÐÎʽ·µ
»Ø¸ø¿Í»§¡£ÁíÒ»ÖÖÀàËÆÓÚINSERT»òDELETE²éѯ£¬Ëü²»·µ»ØÊý¾Ý£¬Ö»ÊÇÖ´ÐÐÒ»¸ö¶¯×÷¡£ÓеķþÎñÆ÷ÔÊÐíͬһ¸ö´æ´¢¹ý³Ì¼È¿ÉÒÔ·µ»ØÊý¾ÝÓÖ¿ÉÒÔÖ´Ðж¯×÷¡£
2¡¢Ê²Ã´Ê±ºòÐèÒªÓô洢¹ý³Ì
......

JAVAÀ¬»øÊÕ¼¯Ëã·¨µÄºËÐÄ˼Ïë

1.À¬»øÊÕ¼¯Ëã·¨µÄºËÐÄ˼Ïë
¡¡¡¡JavaÓïÑÔ½¨Á¢ÁËÀ¬»øÊÕ¼¯»úÖÆ£¬ÓÃÒÔ¸ú×ÙÕýÔÚʹÓõĶÔÏóºÍ·¢ÏÖ²¢»ØÊÕ²»ÔÙʹÓÃ(ÒýÓÃ)µÄ¶ÔÏ󡣸ûúÖÆ¿ÉÒÔÓÐЧ·À·¶¶¯Ì¬ÄÚ´æ·ÖÅäÖпÉÄÜ·¢ÉúµÄÁ½¸öΣÏÕ£ºÒòÄÚ´æÀ¬»ø¹ý¶à¶øÒý·¢µÄÄÚ´æºÄ¾¡£¬ÒÔ¼°²»Ç¡µ±µÄÄÚ´æÊÍ·ÅËùÔì³ÉµÄÄÚ´æ·Ç·¨ÒýÓá£
¡¡¡¡À¬»øÊÕ¼¯Ëã·¨µÄºËÐÄ˼ÏëÊÇ£º¶ÔÐéÄâ»ú¿ÉÓÃÄÚ´æ¿Õ¼ä£¬¼´¶Ñ¿Õ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ