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

public class Test {
    static String s;
    
    static void go() {
        System.out.println(s);
        go();
    }

    public static void main(String[] args) {
        go();
    }
}

Follow CodeGalaxy

Mobile Beta

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