What will be the result of compiling and running the following code:

public class Test {
    public static void main(String[] s) {
        class Inn {
            static { System.out.print("Static "); }
            void m() {
                System.out.print("inner ");
            }
        }
        new Inn().m();
    }
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback