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

JavaÎÊÌâ¾­µä32ÎÊ

JavaÎÊÌâ¾­µä32ÎÊ
    µÚÒ»£¬Ì¸Ì¸final£¬ finally£¬ finalizeµÄÇø±ð¡£
    µÚ¶þ£¬Anonymous Inner Class £¨ÄäÃûÄÚ²¿Àࣩ ÊÇ·ñ¿ÉÒÔextends£¨¼Ì³Ð£©ÆäËüÀ࣬ÊÇ·ñ¿ÉÒÔimplements£¨ÊµÏÖ£©interface£¨½Ó¿Ú£©£¿
    µÚÈý£¬Static Nested Class ºÍ Inner ClassµÄ²»Í¬£¬ËµµÃÔ½¶àÔ½ºÃ£¨ÃæÊÔÌâÓеĺÜÁýͳ£©¡£
    µÚËÄ£¬&ºÍ&&µÄÇø±ð¡£
    µÚÎ壬HashMapºÍHashtableµÄÇø±ð¡£
    µÚÁù£¬Collection ºÍ CollectionsµÄÇø±ð¡£
    µÚÆߣ¬Ê²Ã´Ê±ºòÓÃassert.
    µÚ°Ë£¬GCÊÇʲô£¿ ΪʲôҪÓÐGC£¿
    µÚ¾Å£¬String s = new String£¨"xyz"£©£»´´½¨Á˼¸¸öString Object£¿
    µÚÊ®£¬Math.round£¨11.5£©µÈ춶àÉÙ£¿ Math.round£¨-11.5£©µÈ춶àÉÙ£¿
    µÚʮһ£¬short s1 = 1£» s1 = s1 + 1£»ÓÐʲô´í£¿ short s1 = 1£» s1 += 1£»ÓÐʲô´í£¿
    µÚÊ®¶þ£¬sleep£¨£© ºÍ wait£¨£© ÓÐʲôÇø±ð£¿
    µÚÊ®Èý£¬JavaÓÐûÓÐgoto£¿
    µÚÊ®ËÄ£¬Êý×éÓÐûÓÐlength£¨£©Õâ¸ö·½·¨£¿ StringÓÐûÓÐlength£¨£©Õâ¸ö·½·¨£¿
    µÚÊ®Î壬OverloadºÍOverrideµÄÇø±ð¡£OverloadedµÄ·½·¨ÊÇ·ñ¿ÉÒԸı䷵»ØÖµµÄÀàÐÍ£¿
    µÚÊ®Áù£¬SetÀïµÄÔªËØÊDz»ÄÜÖظ´µÄ£¬ÄÇôÓÃʲô·½·¨À´Çø·ÖÖظ´Óë·ñÄØ£¿ ÊÇÓÃ==»¹ÊÇequals£¨£©£¿ ËüÃÇÓкÎÇø±ð£¿
    µÚÊ®Æߣ¬¸øÎÒÒ»¸öÄã×î³£¼ûµ½µÄruntime exception.
    µÚÊ®°Ë£¬errorºÍexceptionÓÐʲôÇø±ð£¿
    µÚÊ®¾Å£¬List£¬ Set£¬ MapÊÇ·ñ¼Ì³Ð×ÔCollection½Ó¿Ú£¿
    µÚ¶þÊ®£¬abstract classºÍinterfaceÓÐʲôÇø±ð£¿
    µÚ¶þʮһ£¬abstractµÄmethodÊÇ·ñ¿ÉͬʱÊÇstatic£¬ÊÇ·ñ¿ÉͬʱÊÇnative£¬ÊÇ·ñ¿ÉͬʱÊÇsynchronized£¿
    µÚ¶þÊ®¶þ£¬½Ó¿ÚÊÇ·ñ¿É¼Ì³Ð½Ó¿Ú£¿ ³éÏóÀàÊÇ·ñ¿ÉʵÏÖ£¨implements£©½Ó¿Ú£¿ ³éÏóÀàÊÇ·ñ¿É¼Ì³ÐʵÌåÀࣨconcrete class£©£¿
    µÚ¶þÊ®Èý£¬Æô¶¯Ò»¸öÏß³ÌÊÇÓÃrun£¨£©»¹ÊÇstart£¨£©£¿
    µÚ¶þÊ®ËÄ£¬¹¹ÔìÆ÷ConstructorÊÇ·ñ¿É±»override£¿
    µÚ¶þÊ®Î壬ÊÇ·ñ¿ÉÒԼ̳ÐStringÀࣿ
    µÚ¶þÊ®Áù£¬µ±Ò»¸öÏ߳̽øÈëÒ»¸ö¶ÔÏóµÄÒ»¸ösynchronized·½·¨ºó£¬ÆäËüÏß³ÌÊÇ·ñ¿É½øÈë´Ë¶ÔÏóµÄÆäËü·½·¨£¿
    µÚ¶


Ïà¹ØÎĵµ£º

javaÖÐʹÓÃscoketÄ£Äâhttp postÇëÇó·¢ËÍͼƬ»òÎļþ

javaÖÐʹÓÃscoketÄ£Äâhttp postÇëÇó·¢ËÍͼƬ»òÎļþ
×î½üÓöµ½¸öÎÊÌ⣬Á½¸öϵͳ¹²ÓÃÓû§µÄÍ·Ïñ£¬Óû§µÄÍ·ÏñÔÚÒ»¸öϵͳÖб£´æ£¬Õâ¾ÍÉæ¼°µ½½«Í¼Æ¬Í¨¹ýscoket·¢Ë͸øÁíÒ»¸öϵͳ´æ´¢µÄÎÊÌ⣬×î³õµÄ˼·Êǽ«Í¼Æ¬¶Á³Ébyte[]Êý×飬Ȼºó·¢ËÍ£¬µ«ÓÖ·¢ÏÖ£¬·¢ËÍͼƬµÄͬʱ»¹Òª·¢ËÍÃÜÔ¿¡¢uid¡¢usernameµÈÐÅÏ¢£¬ºÃͨ¹ý¶Ô·½ÏµÍ³µÄÑéÖ¤£¬Õâ¾Í ......

Ubuntu java¿ª·¢»·¾³´î½¨

jdkµÄ°²×°
1¡¢´Ójava.sun.com¸ãÏÂjdk×îеİ汾£¬Ò»°ãÎÒÃÇÓÃ1.6°æ±¾µÄ£¬ÏÂÔØbin¸ñʽµÄjdk£¬¼Ù¶¨ÏÂÔصÄÎļþÃûΪjdk-6u20-linux-i586.bin¡£
2¡¢chmod u+x jdk-6u20-linux-i586.bin;È»ºó  ./jdk-6u20-linux-i586.bin ½âѹ£¬¼Ù¶¨½âѹºóµÄÎļþ¼ÐΪ jdk1.6_20;
3¡¢ÔÚ/usr/local/  ½¨Á¢Ò»¸öinstallµÄĿ¼£¬ È»ºó°Ñ½âÑ ......

[JAVA] Éî¿Ë¡ ÁíÍâʵÏÖ·½·¨¡¾ÐòÁл¯¡¿

private static List cloneObject(
   Object obj) throws Exception {
  ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
  ObjectOutputStream out = new ObjectOutputStream(byteOut);
  out.writeObject(obj);
  ByteArrayInputStream byt ......

javaÖÐÉÏ´«Í¼Æ¬

1. ActionFormÖÐÌí¼ÓÊôÐÔ£¬FormFileÀàÐͶÔÏó¡£
private FormFile upLoadFile;
public FormFile getUpLoadFile() {
return upLoadFile;
}
public void setUpLoadFile(FormFile upLoadFile) {
this.upLoadFile = upLoadFile;
}
2. Action ÖÐÔö¼ÓÐ޸ķ½·¨¡£
public ActionForward save(ActionMapping mapping, Action ......

JAVA finally×Ö¾äµÄÒì³£¶ªÊ§ºÍ·µ»ØÖµ¸²¸Ç½âÎö

JAVA finally×Ö¾äµÄÒì³£¶ªÊ§ºÍ·µ»ØÖµ¸²¸Ç½âÎö
JavaÐéÄâ»úÔÚÿ¸ötryÓï¾ä¿éºÍÓëÆäÏà¹ØµÄcatch×Ó¾äµÄ½áβ
´¦¶¼»á“µ÷ÓÔfinally×Ó¾äµÄ×ÓÀý³Ì¡£Êµ¼ÊÉÏ£¬finally×Ó¾äÔÚ·½·¨ÄÚ²¿µÄ±íÏÖºÜÏó“΢ÐÍ×ÓÀý³Ì”¡£finally×Ó¾äÕý³£½áÊøºó£­Ö¸µÄÊÇfinally×Ó¾äÖÐ×îºóÒ»ÌõÓï¾äÕý³£Ö´ÐÐÍê±Ï£¬²»°üÀ¨Å׳öÒì³££¬»òÖ´ÐÐre ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ