2 import java.lang.reflect.*;
5 import java.lang.ClassLoader;
7 public class ClassDemo {
9 public static void main(String[] args) throws Exception {
11 ClassLoader cl = new ClassLoader();
12 byte[] bytes = new byte[150];
13 Class cls = cl.defineClass("sun.reflect.MagicAccessorImpl", bytes, 0, bytes.length);
15 // returns an array of TypeVariable object
16 TypeVariable[] tValue = List.class.getTypeParameters();
17 //System.out.println(tValue[0].getName());
18 System.out.println(tValue[0]);
20 BigInteger bi = new BigInteger("-1");
21 System.out.println(bi);