What is the correct way to declare a Java main method?

Last Updated :
Discuss
Comments

What is the correct way to declare a Java main method?

public static void Main(String[] args)


public void main(String args)


public static void main(String[] args)

private static void main(String args[])

Share your thoughts in the comments