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

java SystemµÄÊôÐÔ²ÎÊý´óÈ«

Properties props=System.getProperties(); //ϵͳÊôÐÔ  
   System.out.println("JavaµÄÔËÐл·¾³°æ±¾£º"+props.getProperty("java.version"));  
   System.out.println("JavaµÄÔËÐл·¾³¹©Ó¦ÉÌ£º"+props.getProperty("java.vendor"));  
   System.out.println("Java¹©Ó¦É̵ÄURL£º"+props.getProperty("java.vendor.url"));  
   System.out.println("JavaµÄ°²×°Â·¾¶£º"+props.getProperty("java.home"));  
   System.out.println("JavaµÄÐéÄâ»ú¹æ·¶°æ±¾£º"+props.getProperty("java.vm.specification.version"));  
   System.out.println("JavaµÄÐéÄâ»ú¹æ·¶¹©Ó¦ÉÌ£º"+props.getProperty("java.vm.specification.vendor"));  
   System.out.println("JavaµÄÐéÄâ»ú¹æ·¶Ãû³Æ£º"+props.getProperty("java.vm.specification.name"));  
   System.out.println("JavaµÄÐéÄâ»úʵÏÖ°æ±¾£º"+props.getProperty("java.vm.version"));  
   System.out.println("JavaµÄÐéÄâ»úʵÏÖ¹©Ó¦ÉÌ£º"+props.getProperty("java.vm.vendor"));  
   System.out.println("JavaµÄÐéÄâ»úʵÏÖÃû³Æ£º"+props.getProperty("java.vm.name"));  
   System.out.println("JavaÔËÐÐʱ»·¾³¹æ·¶°æ±¾£º"+props.getProperty("java.specification.version"));  
   System.out.println("JavaÔËÐÐʱ»·¾³¹æ·¶¹©Ó¦ÉÌ£º"+props.getProperty("java.specification.vender"));  
   System.out.println("JavaÔËÐÐʱ»·¾³¹æ·¶Ãû³Æ£º"+props.getProperty("java.specification.name"));  
   System.out.println("JavaµÄÀà¸ñʽ°æ±¾ºÅ£º"+props.getProperty("java.class.version"));  
   System.out.println("JavaµÄÀà·¾¶£º"+props.getProperty("java.class.path"));  
   System.out.println("¼ÓÔØ¿âʱËÑË÷µÄ·¾¶ÁÐ±í£º"+props.getProperty("java.library.path"));  
   System.out.println("ĬÈϵÄÁÙʱÎļþ·¾¶£º"+props.getProperty("java.io.tmpdir"));  
   System.o


Ïà¹ØÎĵµ£º

JAVAµÄ²ÎÊý´«µÝ»úÖÆ

²ÎÊý´«µÝ»úÖÆÖ÷ÒªÓÐÁ½ÖÖ£ºÖµµ÷ÓÃ(call-by-value)£¬ÒýÓõ÷ÓÃ(call-by-reference)¡£
Öµµ÷ÓÃ(call-by-value)£º»á¶ÔʵÔÚ²ÎÊýÇóÖµ£¨Èç¹ûÊDZí´ïʽ£©»ò¿½±´£¨Èç¹ûÊDZäÁ¿£©¡£ÕâЩֵ±»·ÅÔÚÊôÓÚ±»µ÷Óùý³ÌµÄÏìÓ¦ÐÎʽ²ÎÊýµÄÄÚ´æλÖÃÉÏ¡£
ÒýÓõ÷ÓÃ(call-by-reference)£ºÊµÔÚ²ÎÊýµÄµØÖ·×÷ΪÏàÓ¦µÄÐÎʽ²ÎÊýµÄÖµ±»´«µÝ¸ø±»µ÷ÓÃÕß¡£ÔÚ±»µ÷ ......

JavaÖн«Êý×é¸÷ÔªËØ×÷ΪÊý¾ÝÏî²åÈëµ½Êý¾Ý¿âÖÐ

private PreparedStatement pstmt;
String sql="INSERT INTO TABLE(id,Ãû³Æ,Óû§id,Stbid,MAC,Óû§×´Ì¬,×Ü´ÎÊý,IpµØÖ·,×ÊÁϸüÐÂʱ¼ä) " +
           "VALUES(?,?,?,?,?,?,?,?,?)";
 pstmt=connection.prepareStatement(sql);
 pstmt.setString(1,array[0]);
......

java ÐÞÊηûºÍ·ÃÎÊȨÏÞ½éÉÜ

java ÐÞÊηûºÍ·ÃÎÊȨÏÞ½éÉÜ
ÐÞÊηû½éÉÜ£º
public
ʹÓöÔÏó:Àà¡¢½Ó¿Ú¡¢³ÉÔ±±äÁ¿¡¢·½·¨
½éÉÜ:ÎÞÂÛËüËù´¦ÔÚ°ü¶¨ÒåÔÚÄĸÃÀà(½Ó¿Ú¡¢³ÉÔ±)¶¼ÊÇ¿É·ÃÎÊ
protected
ʹÓöÔÏó:³ÉÔ±±äÁ¿¡¢·½·¨
½éÉÜ:³ÉÔ±±äÁ¿Ö»ÄÜÔÚ¶¨ÒåËü°üÖб»·ÃÎÊ£¬Èç¹ûÔÚÆäËû°üÖб»·ÃÎÊ£¬ÔòʵÏÖÕâ¸ö˼··½·¨Àà±ØÐëÊǸóÉÔ±ËùÊôÀà×ÓÀà
private
ʹÓöÔÏó:³É ......

Java IO Á÷ÕûÀí

Ò»£® InputºÍOutput
1. stream´ú±íµÄÊÇÈκÎÓÐÄÜÁ¦²ú³öÊý¾ÝµÄÊý¾ÝÔ´£¬»òÊÇÈκÎÓÐÄÜÁ¦½ÓÊÕÊý¾ÝµÄ½ÓÊÕÔ´¡£ÔÚJavaµÄIOÖУ¬ËùÓеÄstream£¨°üÀ¨InputºÍOut stream£©¶¼°üÀ¨Á½ÖÖÀàÐÍ£º
1.1 ÒÔ×Ö½ÚΪµ¼ÏòµÄstream
ÒÔ×Ö½ÚΪµ¼ÏòµÄstream£¬±íʾÒÔ×Ö½ÚΪµ¥Î»´ÓstreamÖжÁÈ¡»òÍùstreamÖÐдÈëÐÅÏ¢¡£ÒÔ×Ö½ÚΪµ¼ÏòµÄstream°üÀ¨ÏÂÃæ¼¸Ö ......

Java¶ÔÏó¡¢ÒýÓÃ

Java¶ÔÏó¼°ÒýÓÃ
    Java¶ÔÏó¼°ÒýÓÃÊÇÈÝÒ×»ìÏýÈ´ÓÖ±ØÐëÕÆÎյĻù´¡ÖªÊ¶£¬±¾Õ²ûÊöJava¶ÔÏóºÍÒýÓõĸÅÄÒÔ¼°ÓëÆäÃÜÇÐÏà¹ØµÄ²ÎÊý´«µÝ¡£
    ÏÈ¿´ÏÂÃæµÄ³ÌÐò£º
    StringBuffer s;
    s = new StringBuffer("Hello World!");
    µÚÒ»¸ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ