An Object reference
Any class reference with a runtime check
Any array reference with a runtime check
Any interface reference with a runtime check
public class MainClass {
public static void main(String[] argv) {
MyClass cl = new MyClass();
MyInterface i = cl;
}
}
interface MyInterface {
}
class MyClass implements MyInterface {
}
|