Question:public class MyOuter { public static class MyInner { public static void foo() { } } } which statement, if placed in a class other than MyOuter or MyInner, instantiates an instance of the nested class? 

A MyOuter.MyInner m = new MyOuter.MyInner(); 

B MyOuter.MyInner mi = new MyInner(); 

C MyOuter m = new MyOuter(); MyOuter.MyInner mi = m.new MyOuter.MyInner(); 

D MyInner mi = new MyOuter.MyInner(); 

+ Answer
+ Explanation
+ Report
Total Preview: 1080

Copyright © 2024. Powered by Intellect Software Ltd