标签:except ext row public 属性 -- throw 机制 color
类名.class
Class.forName("类名")
new 类名().getClass()
实例:
public void text() throws ClassNotFoundException{ //第一种方式 Class cla = Integer.class; //第二种方式 Class cla2 = Class.forName("Integer"); //第三种方法 Class cla3 = new Integer(0).getClass(); }
未完待续。。。。
标签:except ext row public 属性 -- throw 机制 color
原文地址:http://www.cnblogs.com/zbrave/p/6207404.html