public class MainClass{ public static void main(String[] argv){ MyClass[] a = new MyClass[3]; MySubclass[] b = new MySubclass[3]; a = b; System.out.println(); } } class MyClass{ } class MySubclass extends MyClass{ }