i
and j
to make this statement fail at runtime?i = j;
I spent quite some time debugging this, once...
i
and j
to make this statement fail at runtime?i = j;
public class java
{
static lang lang = new lang();
static class lang
{
static Long Short = new Long();
static class Short
{
}
static class Long
extends Short
{
}
}
public static void main(String[] args) {
System.out.println(java.lang.Short.class.getSimpleName());
}
}