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

java·´Éä

package reflect;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class Test {
 public static void main(String[] args) {
  try {
   Class c = Class.forName("reflect.Student");// ¸ù¾ÝÀàµÄÍêÕûÀàÃû´´½¨ÀàÏó
   Object obj = (Student) c.newInstance();// ʵÀý»¯Àà,Ç¿ÖÁÀàÐÍת»»
   System.out.println(obj);
   Method met = c.getMethod("sayHi", new Class[] { String.class });// µÃµ½Ãû×ÖΪsayHiµÄ·½·¨
   String say = (String) met.invoke(obj, new Object[] { "ss" });//µ÷Ó÷½·¨µÃµ½·µ»ØÖµ
   System.out.println(say);
  } catch (ClassNotFoundException e) {
   // TODO ×Ô¶¯Éú³É catch ¿é
   e.printStackTrace();
  } catch (InstantiationException e) {
   // TODO ×Ô¶¯Éú³É catch ¿é
   e.printStackTrace();
  } catch (IllegalAccessException e) {
   // TODO ×Ô¶¯Éú³É catch ¿é
   e.printStackTrace();
  } catch (SecurityException e) {
   // TODO ×Ô¶¯Éú³É catch ¿é
   e.printStackTrace();
  } catch (NoSuchMethodException e) {
   // TODO ×Ô¶¯Éú³É catch ¿é
   e.printStackTrace();
  } catch (IllegalArgumentException e) {
   // TODO ×Ô¶¯Éú³É catch ¿é
   e.printStackTrace();
  } catch (InvocationTargetException e) {
   // TODO ×Ô¶¯Éú³É catch ¿é
   e.printStackTrace();
  }
 }
}
class Student {
 private int age;
 private String name;
 public int getAge() {
  return age;
 }
 public void setAge(int age) {
  this.age = age;
 }
 public String getName() {
  return name;
 }
 public void setName(String name) {
  this.name = name;
 }
 pub


Ïà¹ØÎĵµ£º

JavaÐòÁл¯µÄ»úÖƺÍÔ­Àí£¨½²µÄºÜÏêϸҲºÜÒ׶®£©


±¾ÎĽ²½âÁËJavaÐòÁл¯µÄ»úÖƺÍÔ­Àí¡£´ÓÎÄÖÐÄã¿ÉÒÔÁ˽âÈçºÎÐòÁл¯Ò»¸ö¶ÔÏó£¬Ê²Ã´Ê±ºòÐèÒªÐòÁл¯ÒÔ¼°JavaÐòÁл¯µÄËã·¨¡£
 
00 00 00 0B: 11, containVersionµÄÖµ.
 
0x70:TC_NULL£¬Ã»Óг¬ÀàÁË¡£
 
0x49: ÓòÀàÐÍ. 49 ´ú±í"I", Ò²¾ÍÊÇInt..
00 0E: ÓòÃû×Ö³¤¶ ......

Äã±ØÐëÖªµÀµÄ11¸öJavaµÚÈý·½Àà¿â

http://apache.freelamp.com/hadoop/hive/hive-0.4.0/
http://sourceforge.net/projects/dbunit/files/
JavaµÚÈý·½library ecosystemÊÇÒ»¸öºÜ¹ãÀ«µÄ·¶³ë¡£²»¾ÃÇ°ÓÐÈË׫ÎÄ£ºÃ¿¸öÏîÄ¿ÖУ¬Äã±ØÐëÖªµÀµÄ11¸öJavaµÚÈý·½Àà¿â¡£
µ¥Ôª²âÊÔ
1.DBUnit
DBunitÊÇÒ»¸ö»ùÓÚjunitÀ©Õ¹µÄÊý¾Ý¿â²âÊÔ¿ò¼Ü¡£ËüÌṩÁË´óÁ¿µÄÀà¶ÔÓëÊý¾Ý¿âÏ๠......

java ²»¶¨²ÎÊýʹÓÃʾÀý

public class javaTest {
public static void test(String ...strings){
for(String str: strings){
System.out.print(str + " ");
}
System.out.println();
}

public static void main(String[] args){
test("a", "b", "c", "ddd");
test( ......

JAVA¼òµ¥¸ÅÄî

1.ʵÀý³ÉÔ±ºÍÀà³ÉÔ±
ʵÀý³ÉÔ±ÖÐÊÇÊôÓÚ¶ÔÏóµÄ,°üÀ¨ÊµÀý³ÉÔ±±äÁ¿ºÍʵÀý³ÉÔ±·½·¨,Ö»Óд´½¨Á˶ÔÏóÖ®ºó²ÅÄÜ·ÃÎÊʵÀý³ÉÔ±±äÁ¿ºÍʵÀý³ÉÔ±·½·¨.
    Àà³ÉÔ±ÊÇÊôÓÚÀàµÄ,Àà³ÉÔ±ÐèÒªÓùؼü×Östatic±êʶ,Ò²³ÆΪ¾²Ì¬³ÉÔ±,Àà³ÉÔ±°üÀ¨Àà³ÉÔ±±äÁ¿ºÍÀà³ÉÔ±·½·¨,ͨ¹ýÀàÃû¿ÉÒÔÖ±½Ó·ÃÎÊÀà³ÉÔ±±äÁ¿ºÍµ÷ÓÃÀà³ÉÔ±·½·¨,¼´Ê¹Ã»Óд´½ ......

JavaºÍC++³ÌÐòÔ±´ýÓöÎÊÌâ

      ×î½ü°àÀïµÄͬѧ¶¼Ã¦×ű¨°à£¬Óиö´ïÄÚÊÇjavaÅàѵ£¬ÓиöÉîÀ¶ÊÇC++Åàѵ£¬ÍøÉÏ¿´ÁËЩÌû×Ó˵ʲôµÄ¶¼ÓУ¬×ÔÎҸоõÅàÑøÒ»¸öC++³ÌÐòÔ±µÄÖÜÆÚÒª±ÈÅàÑøÒ»¸öjAVA³ÌÐòÔ±µÄÖÜÆÚ³¤ºÜ¶à£¬µ±È»£¬C++ÒªÊÇѧµÄºÃµÄ»°¿Ï¶¨±ÈѧjavaµÄÅ££¬µ«ÊǸ¶³öµÄ´ú¼Û¸öÈËÈÏΪÊÇÓкܴó²î¾àµÄ¡£¶ÔÓÚÏÖÔÚÊг¡É϶ÔÓÚÓïÑÔµÄÐèÇóÒ² ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ