class OuterTest {
String id ;
OuterTest ( ) {
this . id = " Default " ;
}
OuterTest ( String id ) {
this . id = id ;
}
class InnerTest extends OuterTest {
void doSomething ( ) {
System . out . println ( OuterTest. this . id ) ;
}
};
public static void main ( String args [ ] ) {
OuterTest outer = new OuterTest ( " STP " ) ;
InnerTest inner = outer . new InnerTest ( ) ;
inner . doSomething ( ) ;
}
};
can you explain me why it is giving output as STP