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

JavaÅàѵ,ÎÒΪʲôѡÔñ´«ÖDz¥¿Í

       ´ó¼ÒºÃ,ÎÒÊÇ´«ÖDz¥¿Í2009Äê12ÔÂ20ºÅ³å´Ì°àѧԱ.ÔÚ½ÓÏÂÀ´µÄ¼¸¸öÔÂÀïÎÒ½«ÕæʵµÄ¼Í¼ÔÚ´«ÖDz¥¿ÍµÄѧϰ¾­Àú.Ò»ÊǶÔ×Ô¼ºÑ§Ï°µÄ×ܽáºÍ¼Í¼;¶þÊÇÕæʵµÄ·´Ó¦ÔÚ´«ÖDz¥¿Íѧϰ¾­ÀúºÍ¹ý³Ì.
       ÏȽéÉÜÒ»ÏÂÎÒ×Ô¼º´Ó±ÏÒµµ½´«ÖDz¥¿Í֮ǰÔÚ±±¾©µÄ¾­Àú.09Äê±¾¿Æ±ÏÒµ.6Ô·ÝÀ´µ½±±¾©,Ò²²»ÖªµÀÊÇÔËÆøºÃ»¹ÊÇÔËÆø»µ.À´Á˵ڰËÌì,Ö»ÃæÊÔÁËÒ»´Î¾ÍÕÒµ½ÁËÒ»·Ý¹¤×÷.¿ÉÊǹ¤×ÊÖ»ÓÐ1500¿é,µ«»¹ºÃ¹¤×÷»¹Ëã¶Ô¿Ú°É.¸øÕâ¸ö¹«Ë¾×ö¸öÆóÒµÃÅ»§ÍøÕ¾,ÊÇaspƽ̨.ÎÒ¶ÔJava Web»¹¿ÉÒÔ,¿ÉaspÊÇÒ»µã¶¼²»»á,µ±Ê±Ö»ÄÜÒ»±ßѧϰһ±ß¹¤×÷.¶ÔÒ³ÃæµÄÉè¼Æ¶¼ÊÇÓÉÀÏ°å(¹«Ë¾ºÜС°¡)Éè¼ÆµÄ,ÓÉÎÒÀ´ÊµÏÖ¹¦ÄܺÍÈÕ³£Î¬»¤²¢±£Ö¤ÍøÕ¾°²È«ÔËÐÐ.»¹ºÃ˳ÀûÍê³ÉÁ˹¤×÷.ÔÚÕâÀ﹤×÷Á˶þ¸öÔÂ,Ò»±ß¹¤×÷Ò»±ßÕÒÐµĹ¤×÷.ÔÚºÍÀÏ°åÌáÇ°´ò¹ýÕкôÖ®ºó,˳Àû×öÁËÒ»¸öÔµĽ»½Ó.»»ÁËÀ´±±¾©µÄµÚ¶þ·Ý¹¤×÷.Ò»¼ÒмÓƵÄÍâÆó.¹¤×ÊÊÇÔ­À´µÄÒ»±¶3000¿é.ÎÒÕâʱÒѾ­ºÜÂúÒâÁË.¹«Ë¾ÊÇÉϺ£µÄÒ»¼Ò¹«Ë¾,×ܲ¿¶¼ÔÚÉϺ£,±±¾©ÊÇ·Ö¹«Ë¾Ö»Óа˸öÈË.ÊÇ×öÏÖ³¡µÄ.ÿÌìËäÈ»ºÜÀÛ,µ«ºÜ¿ªÐÄ.²»¹ý»¹ÊǸоõ¼¼ÊõÉÏÓвî¾à,¸ÉÆð»îÀ´ºÜÀÛ.ºÜ¶à¼¼Êõ¶¼»á,²»¹ý²»¹»Ôúʵ.ºÜµ±Îñ¿ª·¢ËٶȺÍÖÊÁ¿.ÒòΪ¹¤×÷ʱ¼ä²»³¤,¿ª·¢¾­Ñé²»×ã´úÂëµÄÖÊÁ¿ºÍ¿ª·¢¼¼Çɶ¼²»¹».¾­¹ý˼¿¼,¾ö¶¨ÔٺúÃ"ÐÞÁ¶"Ò»ÏÂ.ÊÇÕâô¼Æ»®µÄ,Ò»ÊÇ×Ôѧ,ËäÈ»ÄÜÐеÄͨµ«Ê±¼ä»áÀ­µÄºÜ³¤Í¬Ê±Ð§ÂÊÒ²²»¸ß.¶þ¾ÍÊÇÕÒ¸öÐŵĹýµÄÅàѵ»ú¹¹²Î¼ÓÅàѵÁË.
        ÒòΪÎÒÒѾ­¹¤×÷¹ýÒ»¶Îʱ¼äÁË,ËùÒÔ¶ÔÅàѵºÍ´úÂëÒ²ÖªµÀºÃ»µÓÅÁÓ.ËäÈ»¶¼ÊÇÍê³ÉÁ˹¦ÄÜ,±íÃæÉÏ¿´¶¼ÊÇÒ»ÑùµÄ,µ«¿ª·¢´úÂëµÄÖÊÁ¿ºÍ´úÂëµÄ½¡×³ÐÔ²»ÊÇ´Ó±íÃæÉÏÄÜ¿´³öÀ´ÁË.°ÝÃûʦ,·Å¸ßÈË;Õâ¾ø¶ÔÄܴܺóµÄÌá¸ßЧÂʵÄ.ÏÖÔÚÓкܶàÅàѵѧУ,ÌرðÊÇJavaÅàѵ.ÕâÀïȷʵÓв»ÉÙÊÇÃÉʶùµÄ.Èç¹ûÑ¡´íÁË,Ò»Êǵ±Îñ±¦¹óµÄʱ¼ä;¶þÊÇÀË·ÑÁ˸¸Ä¸µÄѪº¹Ç®;ÈýÊǾ­¹ýÁËÓ¹È˵ÄÖ¸µã»áÈÃÈ˶à×ߺܶàÍä·.Ó°ÏìÁË´óºÃµÄÇ°³Ì.ÎÒ¾­¹ý¿¼²ìºÍ˼¿¼.
        ×îºóΪʲô¾ÍÑ¡ÔñÁË´«ÖDz¥¿ÍÁËÄØ.
        ÔÚÉÏ´óѧµÄʱºò,ÎҾ;­³£ÔÚµç¿ÉÏÏÂJavaµÄÊÓƵ¿´.¿´¹ýÁ˲»ÉÙÅàѵ»ú¹¹µÄÊÓƵ.ÔÚ±ÏÒµµÄÄǶÎʱ¼ä,Ò²ÓÐͬѧȥһЩÅàѵ»ú¹¹.ÄûØÀ´²»ÉÙµÄÄÚ²¿ÊÓƵ.ÎҴ󲿷ֵÄJava¼¼Êõ¶¼ÊÇͨ¹ýÕâЩÊÓƵѧϰµÄ.´óѧ½ÌµÄÒ²²»ÊDz»ºÃ,Õâ¾ÍÏñÊÇ»ù´¡.»ù´¡²»ºÃҲûÓа취½¨¸ßÂ¥²»ÊÇÂï.¿´¹ýÁ˺ܶàÊÇÊÓƵ,´«ÖDz¥¿ÍµÄÊÓƵÊÇÕâÀïÃæºÜºÃµÄ.´ÓÊÓƵÀïÄÜ¿´


Ïà¹ØÎĵµ£º

Java ´ò¿ªpdfÎļþ

  InputStream in = null;
  ServletOutputStream out = null;
  String filePath = this.getServlet().getServletContext()
    .getRealPath("/")
    + "pdffiles" + File.separator +"HelpManual.pdf";
  try {
  &n ......

JavaºËÐÄAPIÐèÒªÕÆÎյij̶È

JavaµÄºËÐÄAPIÊǷdz£ÅÓ´óµÄ,Õâ¸ø¿ª·¢ÕßÀ´Ëµ´øÀ´Á˺ܴóµÄ·½±ã£¬¾­³£ÈËÓÐÆÀÂÛ,javaÈóÌÐòÔ±±äɵ¡£
µ«ÊÇһЩÄÚÈÝÎÒÈÏΪÊDZØÐëÕÆÎյģ¬·ñÔò²»¿ÉÒÔÊìÁ·ÔËÓÃjava£¬Ò²²»»áʹÓþͺÜÄÑ°ìÁË¡£
1¡¢java.lang°üϵÄ80£¥ÒÔÉϵÄÀàµÄ¹¦ÄܵÄÁé»îÔËÓá£
2¡¢java.util°üϵÄ80£¥ÒÔÉϵÄÀàµÄÁé»îÔËÓã¬ÌرðÊǼ¯ºÏÀàÌåϵ¡¢Õý¹æ±í´ïʽ¡¢Ê±¼ä¡¢Ê ......

JavaÖÐÈ¡µ±Ç°µÄ·½·¨Ãû×Ö

stack[0] ±íʾ»ñµÃµ±Ç°·½·¨
1.
StackTraceElement[] stack = Thread.currentThread().getStackTrace();
stack[0].getMethodName();
    StackTraceElement[] stack = Thread.currentThread().getStackTrace();
    stack[
0
].getMethodName(); 
new Exceptio ......

java³ý·¨µÄÏÝÚå

Java³ý·¨ÔËËãµÄÏÝÚå
 
³ý·¨ÔËËãË­²»»á°¡£¬ºÜ¶àÈ˲»Ð¼Ò»¹Ë£¬ÕæÊÇÎÞÖªÕßÎÞη£¡
Æäʵ³ý·¨¡¢ÇóÓàÔËËãÓÐһЩÏÝÚå¡£Ò»µ©¼ÆËã·¢ÉúÁËÎÊÌ⣬»¹ºÜ²»ºÃÕÒ¡£²»ºÃÕÒµÄÔ­ÒòÖ÷ÒªÊÇÎÊÌâµÄżȻÐÔÌ«Ç¿£¬Èç¹ûÄãÖªµÀ¿ÉÄÜ·¢ÉúʲôÎÊÌ⣬ÄãµÄ´úÂë¾Í¿ÉÒÔдµÃ¸ü°²È«¡£
 
Êýѧ³ý·¨¹æ¶¨£¬0²»ÄÜ×ö³ýÊý£¬ÒòΪ»áµÃµ½Ò»¸öÎÞÇî´óÊý¾Ý¡£
&nb ......

java staticºÍfinalµÄÀí½â

final ¹Ø¼ü×Ö ºÍ static Ó÷¨
Ò»¡¢final 
¸ù¾Ý³ÌÐòÉÏÏÂÎÄ»·¾³£¬Java¹Ø¼ü×ÖfinalÓГÕâÊÇÎÞ·¨¸Ä±äµÄ”»òÕß“ÖÕ̬µÄ”º¬Ò壬Ëü¿ÉÒÔÐÞÊηdzéÏóÀà¡¢·Ç³éÏóÀà³ÉÔ±·½·¨ºÍ±äÁ¿¡£Äã¿ÉÄܳöÓÚÁ½ÖÖÀí½â¶øÐèÒª×èÖ¹¸Ä±ä£ºÉè¼Æ»òЧÂÊ¡£
finalÀ಻Äܱ»¼Ì³Ð£¬Ã»ÓÐ×ÓÀ࣬finalÀàÖеķ½·¨Ä¬ÈÏÊÇfinalµÄ¡£ 
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ