javaÐĵã¡
1. Êý×éÓÐûÓÐlength()Õâ¸ö·½·¨? StringÓÐûÓÐlength()Õâ¸ö·½·¨£¿
´ð£ºÊý×éûÓÐlength()Õâ¸ö·½·¨£¬ÓÐlengthµÄÊôÐÔ¡£
StringÓÐlength()Õâ¸ö·½·¨¡£
2. String s = new String("xyz");´´½¨Á˼¸¸öString Object?
´ð£ºÁ½¸ö¶ÔÏó£¬Ò»¸öÊÇ“xyx”,Ò»¸öÊÇÖ¸Ïò“xyx”µÄÒýÓöÔÏós¡£
3. abstract classºÍinterfaceÓÐʲôÇø±ð£¿
´ð£ºÉùÃ÷·½·¨µÄ´æÔÚ¶ø²»È¥ÊµÏÖËüµÄÀà±»½Ð×ö³éÏóÀࣨabstract class£©£¬ËüÓÃÓÚÒª´´½¨Ò»¸öÌåÏÖijЩ»ù±¾ÐÐΪµÄÀ࣬²¢Îª¸ÃÀàÉùÃ÷·½·¨£¬µ«²»ÄÜÔÚ¸ÃÀàÖÐʵÏÖ¸ÃÀàµÄÇé¿ö¡£²»ÄÜ´´½¨abstract ÀàµÄʵÀý¡£È»¶ø¿ÉÒÔ´´½¨Ò»¸ö±äÁ¿£¬ÆäÀàÐÍÊÇÒ»¸ö³éÏóÀ࣬²¢ÈÃËüÖ¸Ïò¾ßÌå×ÓÀàµÄÒ»¸öʵÀý¡£²»ÄÜÓгéÏó¹¹Ô캯Êý»ò³éÏó¾²Ì¬·½·¨¡£Abstract ÀàµÄ×ÓÀàΪËüÃǸ¸ÀàÖеÄËùÓгéÏó·½·¨ÌṩʵÏÖ£¬·ñÔòËüÃÇÒ²ÊdzéÏóÀࡣȡ¶ø´úÖ®£¬ÔÚ×ÓÀàÖÐʵÏָ÷½·¨¡£ÖªµÀÆäÐÐΪµÄÆäËüÀà¿ÉÒÔÔÚÀàÖÐʵÏÖÕâЩ·½·¨¡£
½Ó¿Ú£¨interface£©ÊdzéÏóÀàµÄ±äÌå¡£ÔÚ½Ó¿ÚÖУ¬ËùÓз½·¨¶¼ÊdzéÏóµÄ¡£¶à¼Ì³ÐÐÔ¿Éͨ¹ýʵÏÖÕâÑùµÄ½Ó¿Ú¶ø»ñµÃ¡£½Ó¿ÚÖеÄËùÓз½·¨¶¼ÊdzéÏóµÄ£¬Ã»ÓÐÒ»¸öÓгÌÐòÌå¡£½Ó¿ÚÖ»¿ÉÒÔ¶¨Òåstatic final³ÉÔ±±äÁ¿¡£½Ó¿ÚµÄʵÏÖÓë×ÓÀàÏàËÆ£¬³ýÁ˸ÃʵÏÖÀ಻ÄÜ´Ó½Ó¿Ú¶¨ÒåÖм̳ÐÐÐΪ¡£µ±ÀàʵÏÖÌØÊâ½Ó¿Úʱ£¬Ëü¶¨Ò壨¼´½«³ÌÐòÌå¸øÓ裩ËùÓÐÕâÖֽӿڵķ½·¨¡£È»ºó£¬Ëü¿ÉÒÔÔÚʵÏÖÁ˸ýӿڵÄÀàµÄÈκζÔÏóÉϵ÷Óýӿڵķ½·¨¡£ÓÉÓÚÓгéÏóÀ࣬ËüÔÊÐíʹÓýӿÚÃû×÷ΪÒýÓñäÁ¿µÄÀàÐÍ¡£Í¨³£µÄ¶¯Ì¬Áª±à½«ÉúЧ¡£ÒýÓÿÉÒÔת»»µ½½Ó¿ÚÀàÐÍ»ò´Ó½Ó¿ÚÀàÐÍת»»£¬instanceof ÔËËã·û¿ÉÒÔÓÃÀ´¾ö¶¨Ä³¶ÔÏóµÄÀàÊÇ·ñʵÏÖÁ˽ӿÚ.
4. ==ºÍequalsµÄÇø±ð£¿
´ð£º==ÓÃÓÚÅжÏÁ½¸öÒýÓñäÁ¿ÊÇ·ñÖ¸Ïòͬһ¸ö¶ÔÏóʵÀý.
equalsÓÃÓÚÅжÏÁ½¸öÖµÊÇ·ñÏàµÈ.
5. SetÀïµÄÔªËØÊDz»ÄÜÖظ´µÄ£¬ÄÇôÓÃʲô·½·¨À´Çø·ÖÖظ´Óë·ñÄØ? ÊÇÓÃ==»¹ÊÇequals()? ËüÃÇÓкÎÇø±ð?
´ð£ºSetÀïµÄÔªËØÊDz»ÄÜÖظ´µÄ£¬ÄÇôÓÃiterator()·½·¨À´Çø·ÖÖظ´Óë·ñ¡£e
Ïà¹ØÎĵµ£º
´úÂëÈçÏ£º
1 String command = " cmd /c C:/Program Files/MySQL/MySQL Server 5.0/bin>mysqldump -h localhost -u root -p aijia > E:/aijia.dmp " ;
2 try {
3 Process process& ......
ÍøÂç±à³ÌµÄʵÖʾÍÊÇÁ½¸ö£¨»ò¶à¸ö£©É豸£¨ÀýÈç¼ÆËã»ú£©Ö®¼äµÄÊý¾Ý´«Êä¡£
ÍøÂç×îÖ÷ÒªµÄÓÅÊÆÔÚÓÚ¹²Ïí£º¹²ÏíÉ豸ºÍÊý¾Ý£¬ÏÖÔÚ¹²ÏíÉ豸×î³£¼ûµÄÊÇ´òÓ¡»ú£¬Ò»¸ö¹«Ë¾Ò»°ãÒ»¸ö´òÓ¡»ú¼´¿É£¬¹²ÏíÊý¾Ý¾ÍÊǽ«´óÁ¿µÄÊý¾Ý´æ´¢ÔÚÒ»×é»úÆ÷ÖУ¬ÆäËüµÄ¼ÆËã»úͨ¹ýÍøÂç·ÃÎÊÕâЩÊý¾Ý£¬ÀýÈçÍøÕ¾¡¢ÒøÐзþÎñÆ÷µÈµÈ¡£
µ«ÊÇ£¬½øÐÐÍøÂç±à³Ìʱ£¬Ö»ÓÐIP ......
ÓÉÓÚ¹¤×÷ÐèÒª£¬ÒªÓÃ.netµÄ³ÌÐòµ÷ÓÃÒ»¸öjava±àдµÄweb service½Ó¿Ú£¬½Ó¿ÚµÄÒ»¸ö²ÎÊýÒªÇómd5·½Ê½¼ÓÃÜ¡£
.netÖеÄmd5¼ÓÃÜÊǺÜÈÝÒ׵ģ¬²ÉÓÃmsdnÖиø³öµÄ·½·¨:
// Hash an input string and return the hash as
// a 32 character hexadecimal string.
static string getMd5Hash(string input)
{
......
¡¡¡¡Ëùν¶ÔÏóÐòÁл¯¾ÍÊǽ«¶ÔÏóµÄ״̬ת»»³É×Ö½ÚÁ÷£¬ÒÔºó¿ÉÒÔͨ¹ýÕâЩֵÔÙÉú³ÉÏàͬ״̬µÄ¶ÔÏó¡£Õâ¸ö¹ý³ÌÒ²¿ÉÒÔͨ¹ýÍøÂçʵÏÖ£¬¿ÉÒÔÏÈÔÚWindows»úÆ÷ÉÏ´´½¨Ò»¸ö¶ÔÏ󣬶ÔÆäÐòÁл¯£¬È»ºóͨ¹ýÍøÂç·¢¸øһ̨Unix»úÆ÷£¬È»ºóÔÚÄÇÀï׼ȷÎÞÎóµØÖØГװÅ䔡£ÊDz»ÊǺÜÉñÆæ¡£
¡¡¡¡Ò²ÐíÄã»á˵£¬Ö»Á˽âÒ»µãµã£¬µ«´ÓÀ´Ã»ÓнӴ¥¹ý£ ......
дÈë
public static void Writer(String value) {
try{
File file2 = new File("F:\\countDB.txt");
if(!file2.exists()){
  ......