What will be displayed by the following code?

public class test {
    public static void main(int[] args){
        System.out.println("Hi, World!");
    }

    public static void main(String... args){ 
        System.out.println("Hello, World!");
    }
}

Follow CodeGalaxy

Mobile Beta

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