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