What will happen after compilation and execution of the following program?

class Main {
    public void method() {
        static class One {
            public One() {
                System.out.println("From one");
            }
        }        
    }

    
    public static void main(String... args) {
        new Main().method();
    }        
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes