Suppose declare the inner class as class outer { //..... class inner { //............... } } Code (markup): then is it valid to declare the an instance of inner outside outer( e.g. in main finction) by the code: outer.inner oi1 = new outer.inner(); Code (markup):