top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the correct syntax for java main method?

0 votes
Apublic void main(String[] args)
Bpublic static void main(string[] args)
Cpublic static void main()
Dnone of the above

Correct Option: 2  

Java main method has following ways as accepted -
public static void main(String args[])
public static void main(String []args)
public static void main(String... args)
posted Nov 24, 2017 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button