Different declarations

Report a typo

Select all declarations of the main method when the program can be compiled but cannot be run:

a)

public static void main(String[] args) {

}

b)

public static void main(String args) {

}

c)

private static void main(String[] args) {

}

d)

public static main(String[] args) {

}

e)

public void main(String[] args) {

}

To better understand, try to start these cases on your computer using the command line interface.

Select one or more options from the list
___

Create a free account to access the full topic