javaÃæÊÔÌâ
¾¹ý³¤Ê±¼äµÄÃæÊÔ£¬ÒÔÏÂÊÇJAVAÃæÊԵij£¼ûµÄ±ÊÊÔÌâµÄÕûÀí¡£
1¡¢StringºÍStringBufferµÄÇø±ð
JAVAƽ̨ÌṩÁËÁ½¸öÀࣺStringºÍStringBuffer£¬ËüÃÇ¿ÉÒÔ´¢´æºÍ²Ù×Ý×Ö·û´®£¬¼´°üº¬¶à¸ö×Ö·ûµÄ×Ö·ûÊý¾Ý¡£
StringÀàÌṩÁËÊýÖµ²»¿É±äµÄ×Ö·û´®¡£StringBufferÀàÌṩµÄ×Ö·û´®½øÐÐÐ޸ġ£µ±ÖªµÀ×Ö·ûÊý¾ÝÒª¸Ä±äµÄʱºò¾Í
¿ÉÒÔÓÃStringBuffer¡£µäÐ͵أ¬¿ÉÒÔʹÓÃStringBufferÀ´¶¯Ì¬¹¹Ôì×Ö·ûÊý¾Ý¡£
2¡¢ String s=new String("xyz")£¬´´½¨Á˼¸¸ö¶ÔÏó£¿
Á½¸ö¶ÔÏó£¬Ò»¸öÊÇ"xyz"£¬Ò»¸öÊÇÖ¸Ïò"xyz"µÄÒýÓöÔÏós¡£
3¡¢ÊÇ·ñ¿ÉÒԼ̳ÐStringÀà?
StringÀàÊÇfinalÀà¹Ê²»¿É¼Ì³Ð¡£
4¡¢Ëµ³öArrayList¡¢Vector¡¢LinkedListµÄ´æ´¢ÐÔÄÜÌØÐÔ
ArrayListºÍVector¶¼ÊÇʹÓÃÊý×鷽ʽ´æ´¢Êý¾Ý£¬´ËÊý×éÔªËØ´óÓÚʵ¼Ê´æ´¢µÄÊý¾ÝÒÔ±ãÔö¼ÓºÍ²åÈëÔªËØ£¬ËüÃǶ¼
ÔÊÐíÖ±½Ó°´ÐòºÅË÷ÒýÔªËØ£¬µ«ÊDzåÈëÔªËØÒªÉæ¼°Êý×éÔªËØÒƶ¯µÈÄÚ´æ²Ù×÷£¬Ë÷ÒýÊý¾Ý¿ì¶ø²åÈëÊý¾ÝÂý£¬Vector
ÓÉÓÚʹÓÃÁËsynchronized·½·¨£¨Ḭ̈߳²È«£©£¬Í¨³£ÐÔÄÜÉϽÏArrayList²î£¬¶øLinkedListʹÓÃË«ÏòÁ´±íʵÏÖ´æ´¢£¬
°´ÐòºÅË÷ÒýÊý¾ÝÐèÒª½øÐÐÇ°Ïò»òÏòºóµÄ±éÀú£¬µ«ÊDzåÈëÊý¾ÝʱֻÐèÒª¼Ç¼±¾ÏîµÄÇ°ºóÏî¼´¿É£¬Ë÷Òý²åÈëÊý¾Ý½Ï¿ì¡£
5¡¢OverloadºÍOverrideµÄÇø±ð¡£OverloadedµÄ·½·¨ÊÇ·ñ¿ÉÒԸı䷵»ØÖµµÄÀàÐÍ£¿
·½·¨µÄÖØдOverridingºÍÖØÔØOverloadingÊÇJava¶à̬ÐԵIJ»Í¬±íÏÖ¡£
ÖØдOverridingÊǸ¸ÀàÓë×ÓÀàÖ®¼ä¶à̬ÐÔµÄÒ»ÖÖ±íÏÖ£¬ÖØÔØOverloadingÊÇÒ»¸öÀàÖжà̬ÐÔµÄÒ»ÖÖ±íÏÖ¡£
Èç¹ûÔÚ×ÓÀàÖж¨Òåij·½·¨ÓëÆ丸ÀàÓÐÏàͬµÄÃû³ÆºÍ²ÎÊý£¬ÎÒÃǾÍ˵¸Ã·½·¨±»ÖØд£¨Overriding£© ¡£×ÓÀàµÄ¶ÔÏóʹÓÃ
Õâ¸ö·½·¨Ê±£¬½«µ÷ÓÃ×ÓÀàÖеĶ¨Ò壬¶ÔËü¶øÑÔ£¬¸¸ÀàÖеĶ¨ÒåÈçͬ±»“ÆÁ±Î”ÁË¡£Èç¹ûÔÚÒ»¸öÀàÖж¨ÒåÁ˶à¸öͬÃûµÄ
·½·¨£¬ËüÃÇ»òÓв»Í¬µÄ²ÎÊý¸öÊý»òÕßÓв»Í¬µÄ²ÎÊýÀàÐÍ£¬Ôò³ÆΪ·½·¨µÄÖØÔØ£¨Overloading£©¡£
OverloadedµÄ·½·¨ÊÇ¿ÉÒԸı䷵»ØÖµµÄÀàÐÍ¡£
6¡¢forwardºÍredirectµÄÇø±ð
forward ÊÇ·þÎñÆ÷ÇëÇó×ÊÔ´£¬·þÎñÆ÷Ö±½Ó·ÃÎÊÄ¿±êµØÖ·µÄURL£¬°ÑÄǸöURLµÄÏìÓ¦ÄÚÈݶÁÈ¡¹ýÀ´£¬È»ºó°ÑÕâЩÄÚ
ÈÝÔÙ·¢¸øä¯ÀÀÆ÷£¬ä¯ÀÀÆ÷¸ù±¾²»ÖªµÀ·þÎñÆ÷·¢Ë͵ÄÄÚÈÝÊÇ´ÓÄĶùÀ´µÄ£¬ËùÒÔËüµÄµØÖ·À¸Öл¹ÊÇÔÀ´µÄµØÖ·¡£
redirect ¾ÍÊÇ·þÎñ¶Ë¸ù¾ÝÂß¼£¬·¢ËÍÒ
Ïà¹ØÎĵµ£º
½ñÌìÊÇ
3g
ÊÖ»ú¿ª·¢
Android
µÄµÚÒ»Ì죬ÊÇÀèÀÏʦ½²µÄ£¬ÀèÀÏʦÖ÷Òª½éÉÜÁË
3g
£¬ÒÔ¼°
Android
ºÍ¿ª·¢
Helloworld
³ÌÐò¡£
3g
ÊÇʲô
£º
3G
£¬È«³ÆΪ
3rd Generation
£¬ÖÐÎĺ¬Òå¾ÍÊÇÖ¸µÚÈý´úÊý×ÖͨÐÅ¡£
Ëùν
3G
£¬ÊÇÖ¸½«ÎÞÏßͨÐÅÓë¹ú¼Ê»¥ÁªÍøµÈ¶àýÌåͨÐŽá ......
/**
* check if the odivalue has a legal version format[0.0.0.0]
* @param odivalue:The odivalue extracted from SOAP
* @return :a boolean value,true or false
*/
public static boolean isCorrectVersion(String odivalue) {
// TODO Auto-generated method stub
Pattern pattern = Patter ......
Ê×ÏȾͱêÌâ˵Ã÷Ò»µã£¬javaʹÓÃorg.apache.commons.net.ftp.ftpclient°üÀ´²Ù×÷FTPÊǺÜˬµÎ£¬µ«¶ÔÔ¶³ÌÎļþ²Ù×÷£¬ºÃÏñûÓÐʵÏÖ
¸´ÖÆÎļþµÄ·½·¨¡£ÎÒÓõÄÊÇÎļþÒƶ¯(move)£¬°ÑÎļþ´ÓÒ»¸öÎļþ¼ÐÒƶ¯µ½ÁíÍâÒ»¸öÎļþ¼Ð¡£
±³¾°£º
ÔÚactionÖвÙ×÷Ô¶³ÌFTP£¬ÊµÏÖÎļþÒƶ¯¡£³ÌÐòÔËÐÐÔÚ±¾»ú£¬FTPÊÇÒ»¸öLinux· ......
±¾ÎÄÖ÷Òª²Î¿¼ÎÄÕ£º
ubuntuÏÂJava»·¾³ÅäÖÃ
»ù±¾ÉÏÊÇ°²±¾ÎÄËù½²µÄ½øÐÐjavaÅäÖã¬ÏàÐÅÄÜÅäÖóɹ¦µÄ¡£
ΪʲôҪѡÔñĬÈϵÄjava½âÊÍÆ÷ÄØ£¿ÒòΪֻÄÜÓкü¸¸öÖ¸ÏòjavaµÄ½âÊÍÆ÷£¬Òò´ËҪѡÔñ /usr/lib/jvm/java-6-sun/jre/bin/javaΪ
ĬÈϵĽâÊÍÆ÷£¬µ«ÎÒ²»ÖªµÀÈç¹û²»Ñ¡ÔñĬÈϵÄjavaä¯ÀÀÆ÷µÄ»°»áÔõôÑù¡£
ÔÚ³¬¼¶Óû§rootϽ¨Á¢ ......
±àÒëeclairÅöµ½java version "1.5.0_18"ÎÊÌâµÄ½â¾ö
makeÌáʾ£º
Your version is: java version "1.5.0_18"
ÐÞ¸Ä
build\core\main.mk
# Check for the correct version of java
java_version := $(shell java -version 2>&1 | head -n 1 | grep '[ "]1\.6[\. "$$]')
¸Ä³É£º
java_version := $(shell java -ve ......