public class ArrayStoreException 
extends RuntimeException 
表示向一个对象数组存放一错误类型的对象时的异常。例如,下面代码将产生一 ArrayStoreException 异常: 
     Object x[] = new String[3];
     x[0] = new Integer(0);
 
//
pa在造型的时候是ColoredPoint,所以要
pa[0] = new ColoredPoint();
如果造型是Point,那就无所谓。