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();
Java Quiz
Start Quiz

or Read more about Java Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback