Who is the main?

Report a typo

What will happen if you try to compile and run the code below?

public class Main {
    public static void main(String args) throws Exception {
        System.out.printf("No! I'm still the boss!");
    }

    public void main(String[] args) throws Exception {
        System.out.printf("I'm the boss");
    }
}
Select one option from the list
___

Create a free account to access the full topic