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

java±àÂëת»»

³£¼ûµÄJAVA³ÌÐò°üÀ¨ÒÔÏÂÀà±ð£º
*Ö±½ÓÔÚconsoleÉÏÔËÐеÄÀà(°üÀ¨¿ÉÊÓ»¯½çÃæµÄÀà)
*JSP´úÂëÀࣨע£ºJSPÊÇServletsÀàµÄ±äÐÍ£©
*ServeletsÀà
*EJBÀà
*ÆäËü²»¿ÉÒÔÖ±½ÓÔËÐеÄÖ§³ÖÀà
 
ÕâЩÀàÎļþÖУ¬¶¼ÓпÉÄܺ¬ÓÐÖÐÎÄ×Ö·û´®£¬²¢ÇÒ³£ÓÃÇ°ÈýÀàJAVA³ÌÐòºÍÓû§Ö±½Ó½»»¥£¬ÓÃÓÚÊä³öºÍÊäÈë×Ö·û£¬È磺ÔÚJSPºÍServletÖеõ½¿Í»§¶ËËÍÀ´µÄ×Ö·û£¬ÕâЩ×Ö·ûÒ²°üÀ¨ÖÐÎÄ×Ö·û¡£ÎÞÂÛÕâЩJAVAÀàµÄ×÷ÓÃÈçºÎ£¬ÕâЩJAVA³ÌÐòµÄÉúÃüÖÜÆÚ¶¼ÊÇÕâÑùµÄ£º
 
*±à³ÌÈËÔ±ÔÚÒ»¶¨µÄ²Ù×÷ϵͳÉÏÑ¡ÔñÒ»¸öºÏÊʵı༭Èí¼þÀ´ÊµÏÖÔ´³ÌÐò´úÂë²¢ÒÔ.javaÀ©Õ¹Ãû±£´æÔÚ²Ù×÷ϵͳÖУ¬ÀýÈçÎÒÃÇÔÚÖÐÎÄwin2kÖÐÓüÇʱ¾±à¼­Ò»¸öjavaÔ´³ÌÐò£»
*±à³ÌÈËÔ±ÓÃJDKÖеÄjavac.exeÀ´±àÒëÕâЩԴ´úÂ룬ÐγÉ.classÀà(JSPÎļþÊÇÓÉÈÝÆ÷µ÷ÓÃJDKÀ´±àÒëµÄ)£»
*Ö±½ÓÔËÐÐÕâЩÀà»ò½«ÕâЩÀ಼Êðµ½WEBÈÝÆ÷ÖÐÈ¥ÔËÐУ¬²¢Êä³ö½á¹û¡£
ÄÇô£¬ÔÚÕâЩ¹ý³ÌÖУ¬JDKºÍJVM¶ÔÕâЩÎļþÈçºÎ±àÂëºÍ½âÂë²¢ÔËÐеÄÄØ£¿
ÕâÀÒÔÖÐÎÄwin2k²Ù×÷ϵͳΪÀý˵Ã÷JAVAÀàÊÇÈçºÎÀ´±àÂëºÍ±»½âÂëµÄ¡£
 
µÚÒ»²½£¬ÎÒÃÇÔÚÖÐÎÄwin2kÖÐÓñ༭Èí¼þÈç¼Çʱ¾±àдһ¸öJavaÔ´³ÌÐòÎļþ(°üÀ¨ÒÔ ÉÏÎåÀàJAVA³ÌÐò)£¬³ÌÐòÎļþÔÚ±£´æʱĬÈϲÉÓÃÁ˲Ù×÷ϵͳĬÈÏÖ§³ÖGBK±àÂë¸ñʽ(²Ù×÷ϵͳĬÈÏÖ§³ÖµÄ¸ñʽΪfile.encoding¸ñʽ)ÐγÉÁËÒ»¸ö.javaÎļþ£¬Ò²¼´£¬java³ÌÐòÔÚ±»±àÒëÇ°£¬ÎÒÃǵÄJAVAÔ´³ÌÐòÎļþÊDzÉÓòÙ×÷ϵͳĬÈÏÖ§³ÖµÄfile.encoding±àÂë¸ñʽ±£´æµÄ£¬ javaÔ´³ÌÐòÖк¬ÓÐÖÐÎÄÐÅÏ¢×Ö·ûºÍÓ¢ÎijÌÐò´úÂ룻Ҫ²é¿´ÏµÍ³µÄfile.encoding²ÎÊý£¬¿ÉÒÔÓÃÒÔÏ´úÂ룺
¡¡¡¡public class ShowSystemDefaultEncoding {
¡¡¡¡public static void main(String[] args) {
¡¡¡¡String encoding = System.getProperty("file.encoding");
¡¡¡¡System.out.println(encoding);
¡¡¡¡}}
 
µÚ¶þ²½£¬ÎÒÃÇÓÃJDKµÄjavac.exeÎļþ±àÒëÎÒÃǵÄJavaÔ´³ÌÐò£¬ÓÉÓÚJDKÊÇ ¹ú¼Ê°æµÄ£¬ÔÚ±àÒëµÄʱºò£¬Èç¹ûÎÒÃÇûÓÐÓÃ-encoding²ÎÊýÖ¸¶¨ÎÒÃǵÄJAVAÔ´³ÌÐòµÄ±àÂë¸ñʽ£¬Ôòjavac.exeÊ×ÏÈ»ñµÃÎÒÃDzÙ×÷ϵͳĬÈϲÉÓà µÄ±àÂë¸ñʽ£¬Ò²¼´ÔÚ±àÒëjava³ÌÐòʱ£¬ÈôÎÒÃDz»Ö¸¶¨Ô´³ÌÐòÎļþµÄ±àÂë¸ñʽ£¬JDKÊ×ÏÈ»ñµÃ²Ù×÷ϵͳµÄfile.encoding²ÎÊý(Ëü±£´æµÄ¾ÍÊDzÙ×÷ϵͳĬÈϵıàÂë¸ñʽ£¬ÈçWIN2k£¬ËüµÄֵΪGBK)£¬È»ºóJDK¾Í°ÑÎÒÃǵÄjavaÔ´³ÌÐò´Ófile.encoding±àÂë¸ñʽת»¯ÎªJAVAÄÚ²¿Ä¬ÈÏ µÄUNICODE¸ñʽ·ÅÈëÄÚ´æÖС£È»ºó£¬javac°Ñת»»ºóµÄunicode¸ñʽµÄÎļþ½øÐбàÒë³É.classÀàÎļþ£¬´Ëʱ.classÎļþÊÇUNICODE±àÂëµÄ£¬ËüÔÝ·Å


Ïà¹ØÎĵµ£º

java »º´æ¿ò¼Üjava caching systemʹÓÃʾÀý

  ҪʹÓÃjava caching system£¬ÐèÒªÏÂÃæÕ⼸¸ö°ü£ºjcs.jar£¬concurrent.jar,commons-logging.jar, commons-lang.jar,commons-collection.jarÕ⼸¸ö°ü£¬ÔÚjava¹¤³ÌÀïÃ棬
Ê×ÏÈн¨Ò»¸öʹÓÃjcsµÄÅäÖÃÎļþ£ºcache.ccf£¬ÎļþÃû²»Äܸġ£
# DEFAULT CACHE REGION
# sets the default aux value for any non configured ca ......

µ¶Ê¯Í·²¼ÓÎÏ· java°æ

import java.util.Scanner;
public class Game{
  void welcome(){
   println("»¶Ó­À´µ½¼ôµ¶Ê¯Í·²¼ÓÎÏ·");
  }
 Choice getUserChoice(){
  println("ÇëÑ¡Ôñ\t[1]¼ôµ¶\t[2]ʯͷ\t[3]²¼");
  Scanner sc= new Scanner(System.in);
  int userCh ......

java¸´ÖÆ£¬¼ôÇУ¬É¾³ýÎļþ²Ù×÷

package OALogic.sql.data;
import java.io.*;
public class FileOperate {
   public FileOperate() {
   }
  
   public static void main(String args[]){
       newFolder("D:/100");
   }
   /**
  ......

javaÖеķ´Éä»úÖÆ

Ò»¡¢Ê²Ã´ÊÇ·´É䣺
·´ÉäµÄ¸ÅÄîÊÇÓÉSmithÔÚ1982ÄêÊ×´ÎÌá³öµÄ£¬Ö÷ÒªÊÇÖ¸³ÌÐò¿ÉÒÔ·ÃÎÊ¡¢¼ì²âºÍÐÞ¸ÄËü±¾Éí״̬»òÐÐΪµÄÒ»ÖÖÄÜÁ¦¡£ÕâÒ»¸ÅÄîµÄÌá³öºÜ¿ìÒý·¢Á˼ÆËã»ú¿ÆѧÁìÓò¹ØÓÚÓ¦Ó÷´ÉäÐÔµÄÑо¿¡£ËüÊ×Ïȱ»³ÌÐòÓïÑÔµÄÉè¼ÆÁìÓòËù²ÉÓÃ,²¢ÔÚLispºÍÃæÏò¶ÔÏó·½ÃæÈ¡µÃÁ˳ɼ¨¡£ÆäÖÐLEAD/LEAD++ ¡¢OpenC++ ¡¢MetaXaºÍOpenJavaµÈ¾ÍÊÇ»ùÓÚ·´ ......

Java³ÌÐòÔ±ÃæÊÔ±ØÎʵÄÌâÄ¿£¬Äã»á¼¸µÀ£¿

       µÚÒ»£¬Ì¸Ì¸final, finally, finalizeµÄÇø±ð¡£ 
¡¡¡¡µÚ¶þ£¬Anonymous Inner Class (ÄäÃûÄÚ²¿Àà) ÊÇ·ñ¿ÉÒÔextends(¼Ì³Ð)ÆäËüÀ࣬ÊÇ·ñ¿ÉÒÔimplements(ʵÏÖ)interface(½Ó¿Ú)? 
¡¡¡¡µÚÈý£¬Static Nested Class ºÍ Inner ClassµÄ²»Í¬£¬ËµµÃÔ½¶àÔ½ºÃ(ÃæÊÔÌâÓеĺÜÁýͳ)¡£ 
¡¡¡¡µÚËÄ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ