I am Testing Program with a number of nested static classes.
public class Q
{
static class A {
static class B{
static class C{
static class D{
static class E{
}
}
}
}
}
class C{
class D{
class F{
}
}
static class E{
}
}
}
But here i cant declare static class E second time .Which shows error "static modifier not allowed here". Whats wrong with me? Don't shout me. I know its a bad practice .But I have the curiosity to know the reason.