I did not find my answer in the questions I searched , that's why I am asking it .
class outer
{
class inner // non static .
{
}
}
For creating object of inner class I am unable to understand the logic of the part to the right of assignment operator .
outer o = new outer () ;
outer.inner y = o. new inner () ; // I have doubt in this line .
Here outer.inner is the return type but what about the right portion ?
Thing I know : We cant write outer.inner y = new outer.inner () ; since inner is non static .