class Base
{
static class Inner
{
public static void main(
String[] args)
{
System.out.println("Inner");
}
}
}
public class MainTest extends Base.Inner
{
}
when MainTest is run, it prints 'Inner'.
Ok, by the rules of inheritance and etc.. I can arrive at an answer.
But I thought this main is a special method, and that it should be associated per class.
I want to know if this is a bug??
Thanks.