
Hi ,
The folliowing is my code :
class Outer {
class Inner{
void show()
{
System.out.println("Hello ");
}
}
} class Test { public statis void main(String args[]) {
Outer objOuter = new Outer();
Outer.Inner objInner = objOuter.new Inner();
}
}
My question is in the line : Outer.Inner objInner = objOuter.new Inner();
Here how objOuter.new works ?
Regards , Anup Kumar Mandal
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
