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

makefile Ö® java X Ö® lint

E:\>javac -X 
  -Xlint                     ÆôÓý¨ÒéµÄ¾¯¸æ 
  -Xlint:{all,deprecation,unchecked,fallthrough,path,serial,finally,-deprecat ion 
,-unchecked,-fallthrough,-path,-serial,-finally}ÆôÓûò½ûÓÃÌض¨µÄ¾¯¸æ 
  -Xbootclasspath/p:<·¾¶>     ÖÃÓÚÒýµ¼Àà·¾¶Ö®Ç° 
  -Xbootclasspath/a:<·¾¶>     ÖÃÓÚÒýµ¼Àà·¾¶Ö®ºó 
  -Xbootclasspath:<·¾¶>       ¸²¸ÇÒýµ¼ÀàÎļþµÄλÖà
  -Djava.ext.dirs=<Ŀ¼>       ¸²¸Ç°²×°µÄÀ©Õ¹Ä¿Â¼µÄλÖà
  -Djava.endorsed.dirs=<Ŀ¼>  ¸²¸ÇÇ©ÃûµÄ±ê׼·¾¶µÄλÖà
  -Xmaxerrs <±àºÅ>             ÉèÖÃÒªÊä³öµÄ´íÎóµÄ×î´óÊýÄ¿ 
  -Xmaxwarns <±àºÅ>            ÉèÖÃÒªÊä³öµÄ¾¯¸æµÄ×î´óÊýÄ¿ 
  -Xstdout <ÎļþÃû>             Öض¨Ïò±ê×¼Êä³ö
ÕâЩѡÏÊǷDZê׼ѡÏעÒâ¸üС£¡£¡£
ÎÒÃÇÒÀ´ÎÀ´¿´¿´ÆäÖÐÉæ¼° lint µÄÑ¡Ï 
 -Xlint 
ÆôÓÃËùÓо¯¸æ¡£¸ÃÑ¡ÏîÏ൱ÓÚ -Xlint:all Ñ¡Ïî¡£Ïà·´£¬¹Ø±ÕËùÓо¯¸æµÄÑ¡ÏîΪ -Xlint:none¡£ 
-Xlint:unchecked 
ÆôÓöÔËùνµÄδ¾­¼ì²éµÄת»»£¨unchecked warning£©µÄ¾¯¸æ¡£Õâ¸ö¾¯¸æÉæ¼° JDK 5.0 ÖеÄÐÂÌØÐÔ——·¶ÐÍ£¨Generic 
Type£©£¬Õâ¾ø¶ÔÊÇÁíÍâÒ»¸ö¹ÊÊÂÁË¡£ÓÐÐËȤµÄ»°£¬¿ÉÒÔÔÚ Internet ÉÏËÑË÷µ½ºÜ¶à¹ØÓÚ·¶Ð͵ÄÎÄÕ¡£ 
-Xlint:path 
µ±·¢ÏÖ²»´æÔڵķ¾¶»òÕßĿ¼ʱ¸ø³ö¾¯¸æ£¬±ÈÈç±ê׼ѡÏîÖеÄÀà·¾¶£¨classpath£©£¬Ô´´úÂë·¾¶£¨sourcepath£©µÈµÈ¡£ 
-Xlint:serial 
µ±ÔÚ¿ÉÐòÁл¯µÄÀàÖÐûÓз¢ÏÖ serialVersionUID µÄ¶¨Òåʱ£¬¸ø³ö¾¯¸æ¡£ 
Xlint:finally 
µ±·¢ÏÖ finally ×Ó¾äÎÞ·¨Õý³£½áÊøµÄÇé¿öʱ¸ø³ö¾¯¸æ¡£±ÈÈçÏÂÃæÕâ¶Î´úÂ룺 
try { 
} catch (Exception e) { 
} finally { 
    for (;;); 

-Xlint:fallthrough
µ±ÔÚ switch Óï¾ä¿éÖз¢ÏÖ fall-through µÄÇéÐÎʱ¸ø³ö¾¯¸æ¡£ÕâÀïËù˵µÄ fall-through ÇéÐÎÖ¸µÄÊÇÔÚ 
switchÓï¾ä


Ïà¹ØÎĵµ£º

Java NIO APIÏê½â

 
Java NIO APIÏê½â
ÔÚJDK
1.4ÒÔÇ°£¬JavaµÄIO²Ù×÷¼¯ÖÐÔÚjava.ioÕâ¸ö°üÖУ¬ÊÇ»ùÓÚÁ÷µÄ×èÈû£¨blocking£©API¡£¶ÔÓÚ´ó¶àÊýÓ¦ÓÃÀ´Ëµ£¬ÕâÑùµÄAPIʹÓúܷ½
±ã£¬È»¶ø£¬Ò»Ð©¶ÔÐÔÄÜÒªÇó½Ï¸ßµÄÓ¦Óã¬ÓÈÆäÊÇ·þÎñ¶ËÓ¦Óã¬ÍùÍùÐèÒªÒ»¸ö¸üΪÓÐЧµÄ·½Ê½À´´¦ÀíIO¡£´ÓJDK 1.4Æð£¬NIO
API×÷Ϊһ¸ö»ùÓÚ»º³åÇø£¬²¢ÄÜÌṩ·Ç×èÈû(non-blo ......

javaÖÐÁ¬½Ó¸÷Êý¾Ý¿âµÄÇý¶¯ÀàºÍÁ¬½Ó·½Ê½

1.JAVAÁ¬½ÓACCESSÊý¾Ý¿â
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url="jdbc:odbc:Driver={MicroSoft Access Driver (*.mdb)};DBQ="+application.getRealPath("/Data/ReportDemo.mdb");
Connection conn = DriverManager.getConnection(url,"","");
ÔÚÉÏÃæµÄÁ¬½Ó·½·¨ÖУ¬ËùÉæ¼°µ½µÄ²ÎÊýº¬ÒåÈçÏÂËùʾ ......

java´«ÖµÎÊÌâ.

Java´«µÝ²ÎÊýÓÐÁ½ÖÖ £ºÖµ´«µÝ£¬ÒýÓô«µÝ
Ò»°ãÒýÓÃÀàÐÍ ÊÇÒýÓô«µÝ£¬ÖµÀàÐÍÊÇÖµ´«µÝ
ÖµÀàÐÍÊÇԭʼÊý¾ÝÀàÐÍ °üÀ¨ int,byte,char short long,boolean,float,double
ÒýÓÃÀàÐ;ÍÊÇÒ»°ãµÄclassÀà µ±È»Ò²°üÀ¨Ô­Ê¼Êý¾ÝµÄ·â×°ÀàÐÍ ±ÈÈçintµÄ
·â×°ÀàÐÍΪInteger
Ò»°ãÇé¿öÏ£º
Öµ´«µÝ£º
Àý×Ó 1 public  void show1(int str ......

JAVA·´Éä»úÖÆÊÂÀý¶þ

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class Test {
/**
* @param args
*/
public static void main(String[] args) {
try {
Class cls = com.lwf.util.CommonUtil.class;
Object obj = cls.newInstance();
Method addMethod = cls.ge ......

Java Reflection dzÎö1

Reflection µÄ¼òµ¥Ó¦Ó㬰üÀ¨field£¬ method£¬constructorµÄÓ¦Óá£
package com.gaoqian.reflection;
import java.lang.reflect.Array;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.Typ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ